| | |
| | | @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); |
| | | |
| | |
| | | |
| | | @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} " + |