AlertService.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package com.bizmatics.mhfire.service;
  2. import com.bizmatics.common.core.bean.CommonPage;
  3. import com.bizmatics.common.mvc.base.CrudService;
  4. import com.bizmatics.mhfire.model.Alert;
  5. import com.bizmatics.mhfire.service.vo.AlertMapVO;
  6. import com.bizmatics.mhfire.service.vo.AlertStatisticsVO;
  7. import java.util.Date;
  8. import java.util.List;
  9. import java.util.Map;
  10. /**
  11. * @author yq
  12. * @date 2021/5/28 14:52
  13. * 警情
  14. */
  15. public interface AlertService extends CrudService<Alert> {
  16. /**
  17. * 按小时统计警情
  18. * @return
  19. */
  20. Map<String, List<AlertStatisticsVO>> getAlertStatisticsByHouse(Date startTime,Date endTime);
  21. /**
  22. * 按月份统计警情
  23. * @return
  24. */
  25. Map<String, List<AlertStatisticsVO>> getAlertStatisticsByMonth(Date startTime,Date endTime);
  26. /**
  27. * 警情详细信息
  28. * @param current
  29. * @param size
  30. * @param startTime
  31. * @param endTime
  32. * @return
  33. */
  34. CommonPage<Alert> page(Integer current, Integer size, Date startTime, Date endTime);
  35. CommonPage<AlertMapVO> pageMap(Integer current, Integer size, Date startTime, Date endTime);
  36. /**
  37. * 查询不同警情(社会救助,警情,火灾)的占比
  38. * @param startTime
  39. * @param endTime
  40. * @return
  41. */
  42. List<AlertStatisticsVO> getAlertStatistics(Date startTime, Date endTime);
  43. Alert getOne(String id);
  44. }