|  |  | 
 |  |  |             " </foreach> )" + | 
 |  |  |             " order by status desc, seq_num, create_time" + | 
 |  |  |             "</script>") | 
 |  |  |     List<QueueDO> getRoomQueueByStatusAndInstallOrder(@Param("roomId")Long roomId, @Param("statusList")List<Integer> statusList); | 
 |  |  |     List<QueueDO> getRoomInstallQueueByStatus(@Param("roomId")Long roomId, @Param("statusList")List<Integer> statusList); | 
 |  |  |  | 
 |  |  |     @Select("<script>" + | 
 |  |  |             "SELECT * FROM lihu.queue " + | 
 |  |  | 
 |  |  |             "       <foreach collection='curStatusList' separator=',' item='status'>" + | 
 |  |  |             "           #{status} " + | 
 |  |  |             "       </foreach> )" + | 
 |  |  |             "       order by seq_num, book_timeslot, create_time limit 1 " + | 
 |  |  |             "       order by seq_num, create_time limit 1 " + | 
 |  |  |             "</script>" ) | 
 |  |  |     QueueDO getFirstItemByRoomAndStatus(@Param("roomId")Long roomId, @Param("curStatusList")List<Integer> curStatusList); | 
 |  |  |     QueueDO getFirstInstallItemByRoomAndStatus(@Param("roomId")Long roomId, @Param("curStatusList")List<Integer> curStatusList); | 
 |  |  |  | 
 |  |  |     @Select("<script> " + | 
 |  |  |             "select * from lihu.queue where appoint_id in ( " + |