| | |
| | | import com.github.pagehelper.PageInfo; |
| | | import com.whyc.constant.BattAlarmIdEnum; |
| | | import com.whyc.constant.BattSingalIdEnum; |
| | | import com.whyc.constant.DevAlarmEnum; |
| | | import com.whyc.dto.AlarmDto; |
| | | import com.whyc.dto.Param.AlmAnalyseDto; |
| | | import com.whyc.dto.Real.AlmDto; |
| | |
| | | return listGreatThan; |
| | | } |
| | | |
| | | public List<AlarmDto> getListByUserId(Integer userId) { |
| | | return mapper.getListByUserId(userId); |
| | | public List<AlarmDto> getListByUserId(Integer userId, Integer almLevel) { |
| | | return mapper.getListByUserId(userId,almLevel); |
| | | } |
| | | |
| | | public List<Long> getNumListInDB(List<Long> battAlarmNumList) { |
| | |
| | | query.in("num",battAlarmNumList); |
| | | return mapper.selectList(query).stream().map(BattalarmData::getNum).collect(Collectors.toList()); |
| | | } |
| | | |
| | | public List<BattalarmData> getMonAlarm(Integer userId) { |
| | | return mapper.getMonAlarm(userId); |
| | | } |
| | | //预警分析管理 |
| | | public Response getBattAlmAnalyse(AlmAnalyseDto dto) { |
| | | PageHelper .startPage(dto.getPageNum(),dto.getPageSize()); |