| | |
| | | |
| | | @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); |
| | | |
| | |
| | | @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) " + |