增加记录日志功能和插入医生ID
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
yudao-ui-admin CI / build (14.x) (push) Has been cancelled
yudao-ui-admin CI / build (16.x) (push) Has been cancelled
Some checks failed
Java CI with Maven / build (11) (push) Has been cancelled
Java CI with Maven / build (17) (push) Has been cancelled
Java CI with Maven / build (8) (push) Has been cancelled
yudao-ui-admin CI / build (14.x) (push) Has been cancelled
yudao-ui-admin CI / build (16.x) (push) Has been cancelled
This commit is contained in:
parent
7587fb4a28
commit
b9a497d982
@ -1,6 +1,7 @@
|
|||||||
package cn.iocoder.yudao.module.system.controller.admin.process;
|
package cn.iocoder.yudao.module.system.controller.admin.process;
|
||||||
|
|
||||||
import cn.iocoder.yudao.module.system.dal.mysql.process.ProcessMapper;
|
import cn.iocoder.yudao.module.system.dal.mysql.process.ProcessMapper;
|
||||||
|
import com.mzt.logapi.starter.annotation.LogRecord;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
@ -46,9 +47,11 @@ public class ProcessController {
|
|||||||
}
|
}
|
||||||
@PostMapping("/save")
|
@PostMapping("/save")
|
||||||
@Operation(summary = "返修申请插入")
|
@Operation(summary = "返修申请插入")
|
||||||
|
@LogRecord(type = "返修申请", subType = "申请", bizNo ="1001" , success = "ID:{{#processSaveReqVO.getUserId}}-{{#processSaveReqVO.getApplyDoctor}}对检查编号:{{#processSaveReqVO.getExamId}}-{{#processSaveReqVO.getPname}}患者进行返修申请操作")
|
||||||
public CommonResult<Boolean> save(@RequestBody ProcessSaveReqVO processSaveReqVO) {
|
public CommonResult<Boolean> save(@RequestBody ProcessSaveReqVO processSaveReqVO) {
|
||||||
ProcessDO process = new ProcessDO();
|
ProcessDO process = new ProcessDO();
|
||||||
process.setId(UUID.randomUUID().toString());
|
process.setId(UUID.randomUUID().toString());
|
||||||
|
process.setUserId(processSaveReqVO.getUserId());
|
||||||
process.setOrgId(processSaveReqVO.getOrgId());
|
process.setOrgId(processSaveReqVO.getOrgId());
|
||||||
process.setExamId(processSaveReqVO.getExamId());
|
process.setExamId(processSaveReqVO.getExamId());
|
||||||
process.setRegId(processSaveReqVO.getRegId());
|
process.setRegId(processSaveReqVO.getRegId());
|
||||||
|
@ -56,4 +56,7 @@ public class ProcessSaveReqVO {
|
|||||||
@Schema(description = "姓名", example = "芋艿")
|
@Schema(description = "姓名", example = "芋艿")
|
||||||
private String pname;
|
private String pname;
|
||||||
|
|
||||||
|
@Schema(description = "当前登录用户ID", example = "144")
|
||||||
|
private String userId;
|
||||||
|
|
||||||
}
|
}
|
@ -97,5 +97,10 @@ public class ProcessDO {
|
|||||||
*/
|
*/
|
||||||
@TableField("pname")
|
@TableField("pname")
|
||||||
private String pname;
|
private String pname;
|
||||||
|
/**
|
||||||
|
* 当前登陆用户ID
|
||||||
|
* */
|
||||||
|
@TableField("userId")
|
||||||
|
private String userId;
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user