From e1f8da66fc4648870331f9cbe18079bbd83a2ee8 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期二, 10 六月 2025 16:35:20 +0800 Subject: [PATCH] 代码提交 --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/queue/QueueMapper.java | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/queue/QueueMapper.java b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/queue/QueueMapper.java index 5817ea8..a9c331c 100644 --- a/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/queue/QueueMapper.java +++ b/jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/queue/QueueMapper.java @@ -58,7 +58,7 @@ <foreach collection='statusList' separator=',' item='status'> #{status} </foreach> ) - order by status desc, seq_num, create_time + order by status desc, seq_num, book_timeslot </script> """) @Results({ @@ -200,7 +200,7 @@ <foreach collection='statusList' separator=',' item='status'> #{status} </foreach> ) - order by status desc, seq_num, create_time + order by status desc, seq_num, book_timeslot </script> """) @Results({ @@ -210,9 +210,14 @@ @Select(""" SELECT * from lihu.queue where room_id = #{roomId} and bed_no = #{bedNo} - and status = #{curStatus} order by seq_num, create_time limit 1 + and status = #{curStatus} order by seq_num, book_timeslot limit 1 """) QueueDO getBedFirstQueueItemByStatus(@Param("roomId")Long roomId, @Param("bedNo")String bedNo, @Param("curStatus")Integer curStatus); + + @Select(""" + SELECT * from lihu.queue where apply_no = #{applyNo} and status = #{curStatus} order by seq_num, book_timeslot limit 1 + """) + QueueDO getBedFirstQueueItemByApplyNo(@Param("applyNo")String applyNo, @Param("curStatus")Integer curStatus); // 鏌愪釜璇婂鑼冨洿鍐� [宸查鐢╙ [宸插彫鍥�-瀹夎] 浜哄憳 鎶㈠崰, 浼氭洿鏂� [宸ヤ綅鍙穄 // 娌℃湁闄愬畾妫�鏌ョ被鍨嬶紝涓嶈浣跨敤鏃堕棿妲� @@ -221,7 +226,7 @@ " <foreach collection='curStatusList' separator=',' item='status'>" + " #{status} " + " </foreach> )" + - " order by seq_num, create_time limit 1 " + + " order by seq_num, book_timeslot limit 1 " + "</script>" ) QueueDO getRoomFirstQueueItemByStatus(@Param("roomId")Long roomId, @Param("curStatusList")List<Integer> curStatusList); @@ -260,7 +265,7 @@ " <foreach collection='curStatusList' separator=',' item='status'>" + " #{status} " + " </foreach> )" + - " order by seq_num, create_time limit 1 " + + " order by seq_num, book_timeslot limit 1 " + " ) a " + " )" + "</script>" -- Gitblit v1.9.3