From cac7f142c909d712d6d49c45b0d4efbdef673e48 Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期三, 13 十一月 2024 16:25:16 +0800 Subject: [PATCH] 过号 - 检查项目.亲和性 --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/doctor/DoctorController.java | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/doctor/DoctorController.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/doctor/DoctorController.java index bd393d7..6f80f2a 100644 --- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/doctor/DoctorController.java +++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/doctor/DoctorController.java @@ -28,8 +28,7 @@ import static cn.lihu.jh.framework.common.exception.enums.GlobalErrorCodeConstants.SUCCESS; import static cn.lihu.jh.framework.common.pojo.CommonResult.error; import static cn.lihu.jh.framework.common.pojo.CommonResult.success; -import static cn.lihu.jh.module.ecg.enums.ErrorCodeConstants.ECG_INNER_ERROR; -import static cn.lihu.jh.module.ecg.enums.ErrorCodeConstants.PATIENT_NOT_EXISTS; +import static cn.lihu.jh.module.ecg.enums.ErrorCodeConstants.*; @Tag(name = "绠$悊鍚庡彴 - 鍖荤敓鍙彿") @RestController @@ -385,9 +384,12 @@ public CommonResult<String> recallPatient( @RequestParam("roomId") Long roomId, @RequestParam("bedNo") String bedNo, - @RequestParam("patId") String patId ) + @RequestParam("patId") String patId, + @RequestParam("checkType") Integer checkType, + @RequestParam("roomId_operator") Long roomId_operator, + @RequestParam("bedNo_operator") String bedNo_operator ) { - Integer result = queueService.recallPatient(roomId, bedNo, patId); + Integer result = queueService.recallPatient(roomId, bedNo, patId, checkType); if (null == result || 0 == result) return error(PATIENT_NOT_EXISTS); @@ -399,13 +401,20 @@ @Parameter(name = "roomId", description = "璇婂缂栧彿", required = true, example = "116") @Parameter(name = "bedNo", description = "宸ヤ綅缂栧彿", required = true, example = "B2") @Parameter(name = "patId", description = "鎮h�呯紪鍙�", required = true, example = "B2") + @Parameter(name = "checkType", description = "妫�鏌ョ被鍨�", required = true, example = "100") @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") public CommonResult<String> recallInstallPatient( @RequestParam("roomId") Long roomId, @RequestParam("bedNo") String bedNo, - @RequestParam("patId") String patId ) + @RequestParam("patId") String patId, + @RequestParam("checkType") Integer checkType, + @RequestParam("roomId_operator") Long roomId_operator, + @RequestParam("bedNo_operator") String bedNo_operator ) { - Integer result = queueService.recallInstallPatient(roomId, bedNo, patId); + if (roomId != roomId_operator) + return error(QUEUE_RECALL_INSTALL_NOT_CUR_ROOM); + + Integer result = queueService.recallInstallPatient(roomId, bedNo, patId, checkType, bedNo_operator); if (null == result || 0 == result) return error(PATIENT_NOT_EXISTS); -- Gitblit v1.9.3