diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/ProcessController.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/ProcessController.java index ff72e4370..2bced1fbc 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/ProcessController.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/ProcessController.java @@ -1,6 +1,7 @@ package cn.iocoder.yudao.module.system.controller.admin.process; 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.validation.annotation.Validated; import io.swagger.v3.oas.annotations.tags.Tag; @@ -46,9 +47,11 @@ public class ProcessController { } @PostMapping("/save") @Operation(summary = "返修申请插入") + @LogRecord(type = "返修申请", subType = "申请", bizNo ="1001" , success = "ID:{{#processSaveReqVO.getUserId}}-{{#processSaveReqVO.getApplyDoctor}}对检查编号:{{#processSaveReqVO.getExamId}}-{{#processSaveReqVO.getPname}}患者进行返修申请操作") public CommonResult save(@RequestBody ProcessSaveReqVO processSaveReqVO) { ProcessDO process = new ProcessDO(); process.setId(UUID.randomUUID().toString()); + process.setUserId(processSaveReqVO.getUserId()); process.setOrgId(processSaveReqVO.getOrgId()); process.setExamId(processSaveReqVO.getExamId()); process.setRegId(processSaveReqVO.getRegId()); diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/vo/ProcessSaveReqVO.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/vo/ProcessSaveReqVO.java index 428427869..f8c92023c 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/vo/ProcessSaveReqVO.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/process/vo/ProcessSaveReqVO.java @@ -56,4 +56,7 @@ public class ProcessSaveReqVO { @Schema(description = "姓名", example = "芋艿") private String pname; + @Schema(description = "当前登录用户ID", example = "144") + private String userId; + } \ No newline at end of file diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/process/ProcessDO.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/process/ProcessDO.java index 666695237..3f578f686 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/process/ProcessDO.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/dal/dataobject/process/ProcessDO.java @@ -97,5 +97,10 @@ public class ProcessDO { */ @TableField("pname") private String pname; + /** + * 当前登陆用户ID + * */ + @TableField("userId") + private String userId; } \ No newline at end of file