From d30a8689bac96f3d6b5666e1cd4c1f1d7317d755 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期三, 09 十月 2024 11:26:19 +0800
Subject: [PATCH] 工位支持多个检查类型

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devrent/DevRentController.java |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devrent/DevRentController.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devrent/DevRentController.java
index bbfc4ab..3b15946 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devrent/DevRentController.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/devrent/DevRentController.java
@@ -100,12 +100,25 @@
         }
     }
 
-    @PostMapping("/dev-cancel")
+    @PostMapping("/dev-ready-cancel")
     @Operation(summary = "鍙栨秷瑁呮満")
     @PreAuthorize("@ss.hasPermission('ecg:doctor:task')")
-    public CommonResult<Long> devCancel(@Valid @RequestBody DevCancelReqVO cancelReqVO) {
+    public CommonResult<Long> devReadyCancel(@Valid @RequestBody DevCancelReqVO cancelReqVO) {
         try {
-            return devRentService.cancelOperation(cancelReqVO);
+            return devRentService.cancelReadyOperation(cancelReqVO);
+        } catch ( RuntimeException runtimeException ) {
+            String err = ExceptionUtils.formatException( runtimeException );
+            log.error("devCancel: " + err);
+            return CommonResult.error(DEV_CANCEL_EXCEPTION);
+        }
+    }
+
+    @PostMapping("/dev-install-cancel")
+    @Operation(summary = "鍙栨秷瑁呮満")
+    @PreAuthorize("@ss.hasPermission('ecg:doctor:task')")
+    public CommonResult<Long> devInstallCancel(@Valid @RequestBody DevCancelReqVO cancelReqVO) {
+        try {
+            return devRentService.cancelInstallOperation(cancelReqVO);
         } catch ( RuntimeException runtimeException ) {
             String err = ExceptionUtils.formatException( runtimeException );
             log.error("devCancel: " + err);

--
Gitblit v1.9.3