| | |
| | | import cn.lihu.jh.framework.mybatis.core.query.LambdaQueryWrapperX; |
| | | import cn.lihu.jh.framework.mybatis.core.mapper.BaseMapperX; |
| | | import cn.lihu.jh.module.ecg.dal.dataobject.queue.QueueDO; |
| | | import cn.lihu.jh.module.ecg.dal.dataobject.queue.BedQueueStatisticDO; |
| | | import cn.lihu.jh.module.ecg.dal.dataobject.queue.QueueStatisticDO; |
| | | import cn.lihu.jh.module.ecg.dal.dataobject.room.RoomStatisticsDO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import cn.lihu.jh.module.ecg.controller.admin.queue.vo.*; |
| | | import org.apache.ibatis.annotations.Param; |
| | |
| | | Integer getMaxSeqNum(); |
| | | |
| | | @Select("<script>" + |
| | | "SELECT count(1) as total_in_status FROM lihu.queue where status in (" + |
| | | " <foreach collection='statusList' separator=',' item='status'>" + |
| | | " #{status} " + |
| | | " </foreach> );" + |
| | | "</script>") |
| | | Integer statusStatistic(@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} " + |
| | |
| | | List<QueueStatisticDO> queueStatistic(@Param("statusList")List<Byte> statusList); |
| | | |
| | | @Select("<script>" + |
| | | "SELECT status, count(1) as total_in_status FROM lihu.queue where " + |
| | | " room_id = #{roomId} and bed_no = #{bedNo} " + |
| | | " group by status " + |
| | | "</script>") |
| | | List<BedQueueStatisticDO> bedQueueStatistic(@Param("roomId")Long roomId, @Param("bedNo")String bedNo); |
| | | |
| | | @Select("<script>" + |
| | | "SELECT * FROM lihu.queue where status in (" + |
| | | " <foreach collection='statusList' separator=',' item='status'>" + |
| | | " #{status} " + |
| | |
| | | " order by book_timeslot, create_time " + |
| | | "</script>") |
| | | List<QueueDO> getOrderedQueue(@Param("statusList")List<Byte> statusList); |
| | | |
| | | //@Update("update lihu.queue set status = #{newStatus} where pat_id = #{patId} ans status = #{curStatus} ") |
| | | |
| | | @Update("update lihu.queue set status = #{newStatus} where seq_num = \n" + |
| | | "(select a.min_seq_num from \n" + |