From adb4da3c83649d550b8674feb1eb0926fbace30e Mon Sep 17 00:00:00 2001 From: eight <641137800@qq.com> Date: 星期一, 11 十一月 2024 13:45:12 +0800 Subject: [PATCH] 排队&抢人时 亲和检查项目处理 --- jh-module-ecg/jh-module-ecg-biz/src/main/java/cn/lihu/jh/module/ecg/dal/mysql/queue/QueueMapper.java | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 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 be4e8d3..f1a3728 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 @@ -39,6 +39,9 @@ @Select("SELECT max(seq_num) FROM lihu.queue") Integer getMaxSeqNum(); + @Select("SELECT * FROM lihu.queue where seq_num = #{seqNum}") + QueueDO getQueueItemBySeqNum(@Param("seqNum")Integer seqNum); + @Select("SELECT * FROM lihu.queue where pat_id = #{patId}") QueueDO getQueueByPatId(@Param("patId")String patId); @@ -64,6 +67,16 @@ @Select("<script>" + "SELECT * FROM lihu.queue " + + "where pat_id = #{patId} and book_check_type in (" + + " <foreach collection='arrCheckType' separator=',' item='checkType'>" + + " #{checkType} " + + " </foreach> )" + + " and TO_DAYS(book_date) = TO_DAYS(NOW()) " + + "</script>") + List<QueueDO> getCurPatGivenCheckItems(@Param("patId")String patId, @Param("checkTypeList")Integer[] arrCheckType); + + @Select("<script>" + + "SELECT * FROM lihu.queue " + "where id >= #{from} and status in (" + " <foreach collection='statusList' separator=',' item='status'>" + " #{status} " + -- Gitblit v1.9.3