From 5ee1781f2e12b2a82aff632d245226e81486712d Mon Sep 17 00:00:00 2001 From: lxd <1004405501@qq.com> Date: Sun, 28 Jul 2024 12:27:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97@LogRecord?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/admin/applyform/ApplyformController.java | 4 ++++ .../system/controller/admin/doctor/DoctorController.java | 5 +++++ .../system/controller/admin/org/OrgUnitController.java | 3 +++ .../admin/patientexamlist/PatientexamlistController.java | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/ApplyformController.java b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/ApplyformController.java index 6affab1be..cb012d985 100644 --- a/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/ApplyformController.java +++ b/yudao-module-applyregistration/yudao-module-applyregistration-biz/src/main/java/cn/iocoder/yudao/module/applyregistration/controller/admin/applyform/ApplyformController.java @@ -4,6 +4,7 @@ import cn.iocoder.yudao.module.applyregistration.controller.admin.applyform.devi import cn.iocoder.yudao.module.applyregistration.controller.admin.applyform.devicevo.deviceupVO; import cn.iocoder.yudao.module.applyregistration.dal.device.DeviceDO; import cn.iocoder.yudao.module.applyregistration.service.applyform.device.DeviceService; +import com.mzt.logapi.starter.annotation.LogRecord; import org.jetbrains.annotations.NotNull; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -120,6 +121,7 @@ public class ApplyformController { @Parameter(name = "id", description = "ID", required = true, example = "1024") @Parameter(name = "device", description = "设备", required = true,example = "12121") @PreAuthorize("@ss.hasPermission('applyregistration:applyform:update')") + @LogRecord(type = "申请登记", subType = "分检", bizNo ="{{#deviceVO.getID}}" , success = "分检ID为{{#deviceVO.getID}}的患者") public CommonResult updateFJApplyform(@Valid @RequestBody deviceupVO deviceVO) { if (deviceVO==null) @@ -155,6 +157,7 @@ public class ApplyformController { @Operation(summary = "申请单作废") @Parameter(name = "id", description = "编号", required = true) @PreAuthorize("@ss.hasPermission('applyregistration:applyform:delete')") + @LogRecord(type = "申请登记", subType = "作废", bizNo ="{{#id}}" , success = "作废ID为{{#id}}的患者") public CommonResult cancelApplyform(@RequestParam("id") String id) { ApplyformSaveReqVO updateReqVO=new ApplyformSaveReqVO(); @@ -177,6 +180,7 @@ public class ApplyformController { @Operation(summary = "批量分检更新") @Parameter(name = "id", description = "机构ID", required = true, example = "1024") @PreAuthorize("@ss.hasPermission('applyregistration:applyform:update')") + @LogRecord(type = "申请登记", subType = "批量分检", bizNo ="888" , success = "批量分检操作") public CommonResult batchupdateFJApplyform(@RequestBody List deviceVOList) { if (!deviceVOList.isEmpty()) diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/doctor/DoctorController.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/doctor/DoctorController.java index 6d5bf9956..247f6440b 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/doctor/DoctorController.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/doctor/DoctorController.java @@ -1,5 +1,6 @@ package cn.iocoder.yudao.module.system.controller.admin.doctor; +import com.mzt.logapi.starter.annotation.LogRecord; import org.springframework.web.bind.annotation.*; import org.springframework.validation.annotation.Validated; @@ -44,6 +45,7 @@ public class DoctorController { @PostMapping("/create") @Operation(summary = "创建医生管理") @PreAuthorize("@ss.hasPermission('doctor::create')") + @LogRecord(type = "医生管理", subType = "创建", bizNo ="{{#createReqVO.getDoctorID}}" , success = "创建ID为{{#createReqVO.getDoctorID}}的医生") public CommonResult create(@Valid @RequestBody DoctorSaveReqVO createReqVO) { return success(Service.create(createReqVO)); } @@ -51,6 +53,7 @@ public class DoctorController { @PutMapping("/update") @Operation(summary = "更新医生管理") @PreAuthorize("@ss.hasPermission('doctor::update')") + @LogRecord(type = "医生管理", subType = "更新", bizNo ="{{#updateReqVO.getDoctorID}}" , success = "更新ID为{{#updateReqVO.getDoctorID}}的医生") public CommonResult update(@Valid @RequestBody DoctorSaveReqVO updateReqVO) { Service.update(updateReqVO); return success(true); @@ -60,6 +63,7 @@ public class DoctorController { @Operation(summary = "删除医生管理") @Parameter(name = "id", description = "编号", required = true) @PreAuthorize("@ss.hasPermission('doctor::delete')") + @LogRecord(type = "医生管理", subType = "删除", bizNo ="{{#id}}" , success = "删除ID为{{#id}}的医生") public CommonResult delete(@RequestParam("id") String id, @RequestParam("username") String username) { //不是真删除 修改状态 //Service.delete(id); @@ -96,6 +100,7 @@ public class DoctorController { @Operation(summary = "导出医生管理 Excel") @PreAuthorize("@ss.hasPermission('doctor::export')") @ApiAccessLog(operateType = EXPORT) + @LogRecord(type = "医生管理", subType = "导出", bizNo ="999" , success = "导出医生") public void exportExcel(@Valid DoctorPageReqVO pageReqVO, HttpServletResponse response) throws IOException { pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/org/OrgUnitController.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/org/OrgUnitController.java index 4dc6f77a3..ef1a5dfbf 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/org/OrgUnitController.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/org/OrgUnitController.java @@ -70,6 +70,7 @@ public class OrgUnitController { @PutMapping("/update") @Operation(summary = "更新机构管理") @PreAuthorize("@ss.hasPermission('org::update')") + @LogRecord(type = "机构管理", subType = "更新", bizNo ="{{#updateReqVO.getOrgID}}" , success = "更新ID为{{#updateReqVO.getOrgID}}的机构") public CommonResult update(@Valid @RequestBody OrgUnitSaveReqVO updateReqVO) { Service.update(updateReqVO); return success(true); @@ -79,6 +80,7 @@ public class OrgUnitController { @Operation(summary = "删除机构管理") @Parameter(name = "id", description = "编号", required = true) @PreAuthorize("@ss.hasPermission('org::delete')") + @LogRecord(type = "机构管理", subType = "删除", bizNo ="{{#id}}" , success = "删除ID为{{#id}}的机构") public CommonResult delete(@RequestParam("id") String id) { OrgUnitSaveReqVO updateReqVO=new OrgUnitSaveReqVO(); updateReqVO.setOrgID(id); @@ -109,6 +111,7 @@ public class OrgUnitController { @Operation(summary = "导出机构管理 Excel") @PreAuthorize("@ss.hasPermission('org::export')") @ApiAccessLog(operateType = EXPORT) + @LogRecord(type = "机构管理", subType = "导出机构", bizNo ="999" , success = "导出机构") public void exportExcel(@Valid OrgUnitPageReqVO pageReqVO, HttpServletResponse response) throws IOException { pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE); diff --git a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/PatientexamlistController.java b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/PatientexamlistController.java index 559b277a6..749d31380 100644 --- a/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/PatientexamlistController.java +++ b/yudao-module-tblist/yudao-module-tblist-biz/src/main/java/cn/iocoder/yudao/module/tblist/controller/admin/patientexamlist/PatientexamlistController.java @@ -1,6 +1,7 @@ package cn.iocoder.yudao.module.tblist.controller.admin.patientexamlist; import cn.iocoder.yudao.module.tblist.service.patientexamlist.org.OrgService; +import com.mzt.logapi.starter.annotation.LogRecord; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.web.bind.annotation.*; @@ -54,6 +55,7 @@ public class PatientexamlistController { @PostMapping("/create") @Operation(summary = "创建PACS检查列表") @PreAuthorize("@ss.hasPermission('tblist:patientexamlist:create')") + @LogRecord(type = "检查列表", subType = "创建", bizNo ="{{#createReqVO.getId}}" , success = "创建ID为{{#createReqVO.getId}}的患者") public CommonResult createPatientexamlist(@Valid @RequestBody PatientexamlistSaveReqVO createReqVO) { return success(patientexamlistService.createPatientexamlist(createReqVO)); } @@ -111,6 +113,7 @@ public class PatientexamlistController { @Parameter(name = "id", description = "编号", required = true, example = "1024") @Parameter(name = "orgId", description = "机构编号", required = true, example = "1024") @PreAuthorize("@ss.hasPermission('tblist:patientexamlist:query')") + @LogRecord(type = "检查列表", subType = "申请", bizNo ="{{#id}}" , success = "ID为{{#id}}的患者申请") public void UPDATEHigOrg(@RequestParam("id") String id,@RequestParam("orgId") String orgId) { //先拿orgid查询出来对应的org表的上级机构代码 @@ -132,6 +135,7 @@ public class PatientexamlistController { @PutMapping("/examineupdate") @Operation(summary = "超声审核更新数据") @PreAuthorize("@ss.hasPermission('tblist:patientexamlist:update')") + @LogRecord(type = "超声审核", subType = "审核", bizNo ="{{#updateReqVO.getId}}" , success = "审核ID为{{#updateReqVO.getId}}的患者") public CommonResult updateexaminelist(@Valid @RequestBody PatientexamlistSaveReqVO updateReqVO) { LocalDateTime dateTime= LocalDateTime.parse(LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")),