MsgAlarmService.java 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package com.ozs.service;
  2. import com.baomidou.mybatisplus.core.metadata.IPage;
  3. import com.baomidou.mybatisplus.extension.service.IService;
  4. import com.ozs.common.core.domain.AjaxResult;
  5. import com.ozs.entity.MsgAlarm;
  6. import com.ozs.entity.vo.*;
  7. import java.util.List;
  8. import java.util.Map;
  9. /**
  10. * <p>
  11. * 报警信息表 服务类
  12. * </p>
  13. *
  14. * @author ozs
  15. * @since 2023-02-22
  16. */
  17. public interface MsgAlarmService extends IService<MsgAlarm> {
  18. //web数据统计 报警数据详情 导出数据集合
  19. List<AlarmStatisticDto> list(String railwayCode, Integer currentYear, Integer currentMonth, Integer pageNum, Integer pageSize);
  20. IPage listToPage(List list, int pageNum, int pageSize);
  21. //web数据统计 报警月统计数据
  22. List<AlarmStatisticMonthDto> getCount(String railwayCode, Integer currentYear, Integer currentMonth);
  23. //web数据统计 报警月统计数据(天)
  24. List<AlarmStatisticMonthDto> getDayCount(String railwayCode, Integer currentYear, Integer currentMonth);
  25. //数据统计-灾害占比
  26. List<AlarmStatisticMonthDto> getAlarmTypeCount(String railwayCode, Integer currentYear, Integer currentMonth);
  27. //数据统计-频繁出现灾害地点排名
  28. List<AlarmFreqArea> alarmTypeAreaCount(String railwayCode, Integer currentYear, Integer currentMonth);
  29. //报警数据详情导出数据集合
  30. List<AlarmStatisticDto> exportExcel(AlarmStatisticResVo alarmStatisticResVo);
  31. //获取报警数量
  32. Long getAlarmNum();
  33. /**
  34. * 通过相机编码查询未解除预警信息
  35. *
  36. * @param cameraCode
  37. * @return
  38. */
  39. MsgAlarm selectByCameraCode(String cameraCode);
  40. IPage<MsgAlarm> queryPage(MsgAlarmVo msgAlarmVo);
  41. MsgAlarm getByAlarmId(String alarmId);
  42. Map<String, Integer> statisticsNum(MsgAlarmVo msgAlarmVo);
  43. Integer appAlarmNum(MsgAlarmVo msgAlarmVo);
  44. List<MsgAlarm> msgAlarmList(MsgAlarmVo msgAlarmVo);
  45. AjaxResult getDate(MsgAlarmVo msgAlarmVo);
  46. }