From be5e5dd019c89cf586b9b4c8aa07954065d80b0c Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期一, 14 十月 2024 18:52:44 +0800 Subject: [PATCH] 装机 过号 召回 --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/queue/QueueMapper.java | 31 ++++++++++++++++++++++++++++++- 1 files changed, 30 insertions(+), 1 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 4da0f9c..86b13fb 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 @@ -82,6 +82,19 @@ Integer statusStatistic(@Param("statusList")List<Byte> statusList); @Select("<script>" + + "SELECT count(1) as total_in_status FROM lihu.queue where " + + " status in ( " + + " <foreach collection='statusList' separator=',' item='status'>" + + " #{status} " + + " </foreach> ) " + + " and book_check_type in ( " + + " <foreach collection='checkTypes' separator=',' item='checkType'>" + + " #{checkType} " + + " </foreach> ) " + + "</script>") + Integer checkTypeAndStatusStatistic( @Param("checkTypes")Integer[] checkTypes, @Param("statusList")List<Byte> statusList ); + + @Select("<script>" + "SELECT room_id, bed_no, count(1) as total_in_status FROM lihu.queue where status in (" + " <foreach collection='statusList' separator=',' item='status'>" + " #{status} " + @@ -98,10 +111,26 @@ List<BedQueueStatisticDO> bedQueueStatistic(@Param("roomId")Long roomId, @Param("bedNo")String bedNo); @Select("<script>" + + "SELECT status, count(1) as total_in_status FROM lihu.queue where " + + " room_id = #{roomId} " + + " group by status " + + "</script>") + List<BedQueueStatisticDO> roomQueueStatistic(@Param("roomId")Long roomId); + + @Select("<script>" + + "SELECT count(1) FROM lihu.queue " + + "where room_id = #{roomId} and bed_no = #{bedNo} and status in (" + + " <foreach collection='statusList' separator=',' item='status'>" + + " #{status} " + + " </foreach> )" + + "</script>") + Integer bedQueueStatisticByStatus(@Param("roomId")Long roomId, @Param("bedNo")String bedNo, @Param("statusList")List<Byte> statusList); + + @Select("<script>" + "SELECT * FROM lihu.queue " + "where room_id = #{roomId} and bed_no = #{bedNo} and status in (" + " <foreach collection='statusList' separator=',' item='status'>" + - " #{status} " + + " #{status} " + " </foreach> )" + " order by status desc, seq_num" + "</script>") -- Gitblit v1.9.3