| | |
| | | " <foreach collection='statusList' separator=',' item='status'>" + |
| | | " #{status} " + |
| | | " </foreach> )" + |
| | | " order by status desc, seq_num" + |
| | | " order by status desc, seq_num, book_timeslot" + |
| | | "</script>") |
| | | List<QueueDO> getRoomQueueByStatus(@Param("roomId")Long roomId, @Param("statusList")List<Integer> statusList); |
| | | |
| | |
| | | " <foreach collection='statusList' separator=',' item='status'>" + |
| | | " #{status} " + |
| | | " </foreach> ) " + |
| | | " order by status desc, seq_num " + |
| | | " order by status desc, seq_num, book_timeslot " + |
| | | "</script>") |
| | | @Results({ |
| | | @Result(property = "patDetails", column = "pat_details", typeHandler=com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler.class) |
| | |
| | | " where id = " + |
| | | " (select a.id from \n" + |
| | | " (select id from lihu.queue where room_id = #{roomId} and bed_no = #{bedNo} and status = #{curStatus} " + |
| | | " order by seq_num limit 1" + |
| | | " order by seq_num, book_timeslot limit 1" + |
| | | " ) a" + |
| | | " )" ) |
| | | Integer queueRecalledPatient(@Param("roomId")Long roomId, @Param("roomName")String roomName, @Param("bedNo")String bedNo, |