From fce96ef468291fb9a0e6a4d34ab371315e9485d4 Mon Sep 17 00:00:00 2001
From: yxh <172933527@qq.com>
Date: 星期六, 03 十月 2026 00:59:44 +0800
Subject: [PATCH] ai优化

---
 jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/room/RoomMapper.java |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/room/RoomMapper.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/room/RoomMapper.java
index 4525140..cb951c8 100644
--- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/room/RoomMapper.java
+++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/room/RoomMapper.java
@@ -9,7 +9,6 @@
 import org.apache.ibatis.annotations.*;
 
 import cn.lihu.jh.module.ecg.controller.admin.room.vo.RoomPageReqVO;
-import cn.lihu.jh.module.ecg.dal.dataobject.room.RoomStatisticsDO;
 import cn.lihu.jh.module.ecg.enums.BedStatusEnum;
 
 /**
@@ -36,9 +35,6 @@
             " where deleted = 0 " +
             "</script>")
     Integer resetRoom(@Param("newStatus") Integer newStatus);
-
-    @Select({ "SELECT room_id, room_name, count(1) as bed_num FROM lihu.clinic_room group by room_id;" })
-    List<RoomStatisticsDO> roomStatistic();
 
     @Select("<script> " +
             "SELECT * FROM lihu.clinic_room " +
@@ -96,6 +92,17 @@
             "</script>")
     Integer setBedDoctorStatus(@Param("roomId")Long roomId, @Param("bedNo")String bedNo, @Param("docId")Long docId, @Param("newStatus") BedStatusEnum newStatus, @Param("curStatusList") List<BedStatusEnum> curStatusList);
 
+    /**
+     * 銆愰渶姹�3銆戣缃伐浣嶇殑銆屽仠姝㈠�欒瘖銆嶅紑鍏筹紙鎸佷箙鍖栵紝渚� bedReload 鍚庢仮澶嶏級銆�
+     *
+     * @param stopReady 0=姝e父鎺ユ敹鍊欒瘖鎮h�咃紱1=鍋滄鏂板鍊欒瘖鎮h��
+     * @return 鍙楀奖鍝嶈鏁�
+     */
+    @Update("update lihu.clinic_room set stop_ready = #{stopReady}, update_time = NOW() "
+          + "where room_id = #{roomId} and bed_no = #{bedNo} and deleted = 0")
+    Integer setBedStopReady(@Param("roomId")Long roomId, @Param("bedNo")String bedNo,
+                            @Param("stopReady")Integer stopReady);
+
     @Update("<script> " +
             "update lihu.clinic_room set status=#{newStatus.status}, doc_id=#{docId}, doc_name=#{docName} " +
             "where room_id=#{roomId} and bed_no=#{bedNo} and isNull(doc_id)" +
@@ -108,7 +115,7 @@
 
     @Update("<script> " +
             "update lihu.clinic_room set status=#{newStatus.status}, doc_id=null, doc_name=null " +
-            "where room_id=#{roomId} and bed_no=#{bedNo} and doc_id=#{docId} " +
+            "where room_id=#{roomId} and bed_no=#{bedNo} " +
             "and status in ( " +
             " <foreach collection='curStatusList' separator=',' item='curStatus'>" +
             "  #{curStatus.status} " +

--
Gitblit v1.9.3