eight
2024-11-11 adb4da3c83649d550b8674feb1eb0926fbace30e
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} " +