From ad51febb28df10c3c5e6352f33d6610100802465 Mon Sep 17 00:00:00 2001
From: eight <641137800@qq.com>
Date: 星期一, 31 三月 2025 16:17:45 +0800
Subject: [PATCH] 领用完成、 常规检查完成  启动抢 排队 患者

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/room/RoomController.java |   18 ++++++++----------
 1 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/room/RoomController.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/room/RoomController.java
index ce78549..85a6409 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/room/RoomController.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/controller/admin/room/RoomController.java
@@ -10,9 +10,10 @@
 import javax.validation.Valid;
 
 import cn.hutool.extra.servlet.ServletUtil;
-import cn.lihu.jh.module.ecg.controller.admin.room.vo.MonitorInfoVO;
+import cn.lihu.jh.module.ecg.controller.admin.room.vo.*;
 import cn.lihu.jh.module.ecg.dal.dataobject.queue.QueueDO;
 import cn.lihu.jh.module.ecg.dal.dataobject.room.RoomDO;
+import cn.lihu.jh.module.ecg.dal.dataobject.room.RoomProfile;
 import cn.lihu.jh.module.ecg.service.queue.QueueService;
 import org.springframework.util.StringUtils;
 import org.springframework.web.bind.annotation.*;
@@ -22,9 +23,6 @@
 import io.swagger.v3.oas.annotations.Parameter;
 import io.swagger.v3.oas.annotations.Operation;
 
-import cn.lihu.jh.module.ecg.controller.admin.room.vo.RoomPageReqVO;
-import cn.lihu.jh.module.ecg.controller.admin.room.vo.RoomRespVO;
-import cn.lihu.jh.module.ecg.controller.admin.room.vo.RoomSaveReqVO;
 import cn.lihu.jh.module.ecg.service.room.RoomService;
 import cn.lihu.jh.module.system.api.dept.DeptApi;
 import cn.lihu.jh.module.system.api.dept.dto.DeptRespDTO;
@@ -90,10 +88,10 @@
     @GetMapping("/get-room-by-ip")
     @Operation(summary = "鑾峰緱璇婂鍜岃瘖鐤楀簥")
     @PermitAll
-    public CommonResult<RoomRespVO> getRoomByIP(HttpServletRequest request) {
+    public CommonResult<RoomProfileRespVO> getRoomByIP(HttpServletRequest request) {
         String reqIp = ServletUtil.getClientIP(request);
-        RoomDO room = roomService.getRoomByIP(reqIp);
-        return success(BeanUtils.toBean(room, RoomRespVO.class));
+        RoomProfile roomProfile = roomService.getRoomByIP(reqIp);
+        return success(BeanUtils.toBean(roomProfile, RoomProfileRespVO.class));
     }
 
     @GetMapping("/page")
@@ -164,18 +162,18 @@
 
     @GetMapping(value = {"/list-simple-room"})
     @Operation(summary = "鑾峰彇闂ㄨ瘖瀹ゅ垪琛�", description = "涓昏鐢ㄤ簬鍓嶇鐨勮瘖瀹ら�夋嫨")
-    public CommonResult<Map<String, List<RoomRespVO>>> getSimpleRoomList() {
+    public CommonResult<Map<Long, List<RoomRespVO>>> getSimpleRoomList() {
         List<RoomDO> list = roomService.simpleRoomList();
         List<RoomRespVO> list2 = BeanUtils.toBean(list, RoomRespVO.class);
 
-        Map<String, List<RoomRespVO>> map = list2.stream().collect(Collectors.groupingBy(RoomRespVO::getRoomName));
+        Map<Long, List<RoomRespVO>> map = list2.stream().collect(Collectors.groupingBy(RoomRespVO::getRoomId));
         return success(map);
     }
 
     @GetMapping(value = {"/reset-room"})
     @Operation(summary = "閲嶇疆闂ㄨ瘖瀹�", description = "涓昏鐢ㄤ簬姣忓ぉ鍏抽棴宸ヤ綅")
     public CommonResult<String> resetRoom() {
-        roomService.resetRoom();
+        roomService.resetRoom(true);
         return success("reset room ok");
     }
 

--
Gitblit v1.9.3