| | |
| | | |
| | | @Override |
| | | public List<WarningVo> getAlarmAndWarnByTime(Date begin, Date end) { |
| | | String startTime = ymdhms.format(begin); |
| | | String endTime = ymdhms.format(end); |
| | | |
| | | List<WarningDetail> rs = warningDetailMapper.selectByTime(startTime, endTime); |
| | | if (null == rs || rs.isEmpty()) { |
| | | return null; |
| | | } |
| | | |
| | | List<WarningVo> list = new ArrayList<>(); |
| | | for (WarningDetail wd : rs) { |
| | | String time = ymdh.format(wd.getCreateTime()); |
| | | list.add(new WarningVo(wd.getLocationName(), wd.getSuYuanId(), 0.0, 0.0, wd.getValue(), time)); |
| | | } |
| | | |
| | | return list; |
| | | } |
| | | |
| | | public List<WarningVo> getAlarmAndWarnByTime_old(Date begin, Date end) { |
| | | List<WarningVo> list = new ArrayList<>(); |
| | | List<String> ids = CalculateUtils.assembleId(commonService.getCheckPoints3d()); |
| | | if (ids.size() == 0) { |