From 28322b650e29e06d5276742979615691fd233d07 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期四, 28 十一月 2024 18:04:34 +0800
Subject: [PATCH] 排队中  允许过号操作

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/doctor/DoctorController.java |   30 ++++++++++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 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 47bf81c..e89911a 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
@@ -205,6 +205,20 @@
     }
 
     // 甯歌妫�鏌ヨ繃鍙枫�侀鐢ㄨ繃鍙�
+    @GetMapping("/pass-waiting-patient")
+    @Operation(summary = "杩囧彿鎺掗槦涓偅鑰�")
+    @Parameter(name = "patId", description = "鎮h�呯紪鍙�", required = true, example = "20247845")
+    @Parameter(name = "checkType", description = "棰勭害妫�鏌ョ被鍨�", required = true, example = "100")
+    @PreAuthorize("@ss.hasPermission('ecg:doctor:task')")
+    public CommonResult<Integer> passWaitingPatient(
+            @RequestParam("patId") String patId,
+            @RequestParam("checkType") Integer checkType)
+    {
+        queueService.passWaitingPatient( patId, checkType );
+        return success(0);
+    }
+
+    // 甯歌妫�鏌ヨ繃鍙枫�侀鐢ㄨ繃鍙�
     @GetMapping("/pass-next-patient")
     @Operation(summary = "杩囧彿銆佷笅涓�浣嶆偅鑰�")
     @Parameter(name = "roomId", description = "璇婂缂栧彿", required = true, example = "116")
@@ -381,6 +395,22 @@
         return success(patientStatisticVO);
     }
 
+    @GetMapping("/recall-pass-waiting-patient")
+    @Operation(summary = "杩囧彿-鎺掗槦涓� 鎮h�呭彫鍥�")
+    @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> recallPatient(
+            @RequestParam("patId") String patId,
+            @RequestParam("checkType") Integer checkType)
+    {
+        Integer result = queueService.recallPassWaitingPatient(patId, checkType);
+        if (null == result || 0 == result)
+            return error(PATIENT_NOT_EXISTS);
+
+        return success("鎿嶄綔鎴愬姛");
+    }
+
     @GetMapping("/recall-patient")
     @Operation(summary = "杩囧彿鐥呬汉鍙洖")
     @Parameter(name = "roomId", description = "璇婂缂栧彿", required = true, example = "116")

--
Gitblit v1.9.3