BusPatientMapper.java 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package com.coffee.bus.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.baomidou.mybatisplus.core.metadata.IPage;
  4. import com.coffee.bus.entity.BusPatientEntity;
  5. import com.coffee.bus.entity.PatientDeviceRepeatDomain;
  6. import com.coffee.bus.enums.PatientAlarmEnum;
  7. import com.coffee.bus.service.dto.PatientMonitorResult;
  8. import com.coffee.bus.service.dto.PatientDeviceNoneResult;
  9. import com.coffee.bus.service.dto.PatientMonitorQuery;
  10. import org.apache.ibatis.annotations.Mapper;
  11. import org.apache.ibatis.annotations.Param;
  12. import java.util.*;
  13. /**
  14. * @author lifang
  15. * @version 1.0.0
  16. * @ClassName BusHospitalMapper.java
  17. * @Description TODO
  18. * @createTime 2022年03月19日 09:15:00
  19. */
  20. @Mapper
  21. public interface BusPatientMapper extends BaseMapper<BusPatientEntity> {
  22. /**
  23. * 查询给定医院下所有同时挂载多个泵的病患信息
  24. * @param
  25. * @return
  26. */
  27. List<PatientDeviceRepeatDomain> selectRepeatDevice();
  28. /**
  29. * 查询当前医院下所有没有泵的病患信息
  30. * @return
  31. */
  32. List<PatientDeviceNoneResult> selectNoneDevice();
  33. /**
  34. * 查询监控病患列表, 不分页
  35. * @param query
  36. * @return
  37. */
  38. IPage<PatientMonitorResult> selectMonitor(IPage<PatientMonitorResult> page, @Param("query") PatientMonitorQuery query);
  39. PatientMonitorResult findByPatientId(@Param("tenantId") String tenantId,@Param("patientId")String patientId);
  40. long selectAlarmCount(@Param("tenantId") String tenantId,@Param("alarmValue") int alarmValue);
  41. @Deprecated
  42. long monitorTotalCount(@Param("tenantId") String tenantId);
  43. }