eight
2024-10-08 ddf772bc079de92ff4bcba8c0f1624b6398e0dad
jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/room/RoomMapper.java
@@ -31,12 +31,12 @@
                .orderByDesc(RoomDO::getId));
    }
    @Select("select lihu.clinic_room where ip = #{ip}")
    @Select("select * from lihu.clinic_room where ip = #{ip}")
    List<RoomDO> queueByIp(@Param("ip") String ip);
    @Update("<script> " +
            "update lihu.clinic_room set status=#{newStatus}, doc_id=null, doc_name=null " +
            " where 1 = 1 " +
            " where deleted = 0 " +
            "</script>")
    Integer resetRoom(@Param("newStatus") Integer newStatus);
@@ -56,6 +56,9 @@
    @Select("SELECT * FROM lihu.clinic_room where room_id=#{roomId} and bed_no=#{bedNo} and doc_id=#{docId}")
    RoomDO getRoom(@Param("roomId")Long roomId, @Param("bedNo")String bedNo, @Param("docId")Long docId);
    @Select("SELECT * FROM lihu.clinic_room where doc_id=#{docId} limit 1")
    RoomDO getRoomByDocId(@Param("docId")Long docId);
    @Update("<script> " +
            "update lihu.clinic_room set status=#{newStatus.status} " +
            " where room_id=#{roomId} and bed_no=#{bedNo} and isNull(doc_id) " +