From ca64d931ce30254e34d64ce28cf3a53e54a9159f Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 26 八月 2024 09:32:50 +0800
Subject: [PATCH] update

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/queue/queueController.java |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/queue/queueController.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/queue/queueController.java
index 413f552..3174a56 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/queue/queueController.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/queue/queueController.java
@@ -95,12 +95,15 @@
                         BeanUtils.toBean(list, QueueRespVO.class));
     }
 
-    @GetMapping("/opening-setting")
-    @Operation(summary = "寮�璇婅缃�")
-    @PreAuthorize("@ss.hasPermission('ecg:queue:setting')")
-    public CommonResult<Integer> openingSetting() {
-        // 浠嶥B鍚屾宸ヤ綅鐨勬偅鑰呴槦鍒楁暟鎹埌 宸ヤ綅浼樺厛闃熷垪, 鍙兘鏈夋柊寮�宸ヤ綅
-        queueService.initBedQueueAndSeqNumFromDB();
+    @GetMapping("/bed-control")
+    @Operation(summary = "宸ヤ綅鎺у埗")
+    @PreAuthorize("@ss.hasPermission('ecg:queue:bedcontrol')")
+    public CommonResult<Integer> bedControl(
+        @RequestParam("roomId") Long roomId,
+        @RequestParam("bedNo") String bedNo,
+        @RequestParam("status") Integer status)
+    {
+        queueService.bedControl(roomId, bedNo, status);
         return success(0);
     }
 

--
Gitblit v1.9.3