| | |
| | | "</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=正常接收候诊患者;1=停止新增候诊患者 |
| | | * @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)" + |
| | |
| | | |
| | | @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} " + |