| | |
| | | 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.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; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 排队 Mapper |
| | |
| | | .orderByDesc(QueueDO::getId)); |
| | | } |
| | | |
| | | @Select("<script>" + |
| | | "SELECT status, count(1) as total_in_status FROM lihu.queue where status in (" + |
| | | " <foreach collection='statusList' separator=',' item='status'>" + |
| | | " #{status} " + |
| | | " </foreach> )" + |
| | | " group by status; " |
| | | +"</script>") |
| | | List<QueueStatisticDO> queueStatistic(@Param("statusList")List<Byte> statusList); |
| | | |
| | | @Select("SELECT max(seq_num) FROM lihu.queue") |
| | | int getMaxSeqNum(); |
| | | } |