package com.coffee.bus.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.coffee.bus.entity.BusPatientEntity; import com.coffee.bus.entity.PatientDeviceRepeatDomain; import com.coffee.bus.enums.PatientAlarmEnum; import com.coffee.bus.service.dto.PatientMonitorResult; import com.coffee.bus.service.dto.PatientDeviceNoneResult; import com.coffee.bus.service.dto.PatientMonitorQuery; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.*; /** * @author lifang * @version 1.0.0 * @ClassName BusHospitalMapper.java * @Description TODO * @createTime 2022年03月19日 09:15:00 */ @Mapper public interface BusPatientMapper extends BaseMapper { /** * 查询给定医院下所有同时挂载多个泵的病患信息 * @param * @return */ List selectRepeatDevice(); /** * 查询当前医院下所有没有泵的病患信息 * @return */ List selectNoneDevice(); /** * 查询监控病患列表, 不分页 * @param query * @return */ IPage selectMonitor(IPage page, @Param("query") PatientMonitorQuery query); PatientMonitorResult findByPatientId(@Param("tenantId") String tenantId,@Param("patientId")String patientId); long selectAlarmCount(@Param("tenantId") String tenantId,@Param("alarmValue") int alarmValue); @Deprecated long monitorTotalCount(@Param("tenantId") String tenantId); }