| | |
| | | |
| | | import cn.lihu.jh.module.ecg.controller.admin.room.vo.RoomPageReqVO; |
| | | import cn.lihu.jh.module.ecg.dal.dataobject.room.RoomDO; |
| | | import cn.lihu.jh.module.ecg.dal.dataobject.room.RoomStatisticsDO; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.apache.ibatis.annotations.Select; |
| | | |
| | | /** |
| | | * 诊室和诊疗床 Mapper |
| | |
| | | |
| | | default PageResult<RoomDO> selectPage(RoomPageReqVO reqVO) { |
| | | return selectPage(reqVO, new LambdaQueryWrapperX<RoomDO>() |
| | | .eqIfPresent(RoomDO::getRoomNo, reqVO.getRoomNo()) |
| | | .eqIfPresent(RoomDO::getRoomId, reqVO.getRoomId()) |
| | | .eqIfPresent(RoomDO::getBedNo, reqVO.getBedNo()) |
| | | .betweenIfPresent(RoomDO::getCreateTime, reqVO.getCreateTime()) |
| | | .orderByDesc(RoomDO::getId)); |
| | | } |
| | | |
| | | @Select({ "SELECT room_id, room_name, count(1) as bed_num FROM lihu.clinic_room group by room_id;" }) |
| | | List<RoomStatisticsDO> roomStatistic(); |
| | | |
| | | @Select({ "SELECT id, room_id, room_name, bed_no, onstage FROM lihu.clinic_room where onstage=true;" }) |
| | | List<RoomDO> simpleRoomList(); |
| | | |
| | | } |