| | |
| | | public WarningVo() { |
| | | } |
| | | |
| | | public WarningVo(String locationName, String suYuanId, double lon, double lat, double value) { |
| | | public WarningVo(String locationName, String suYuanId, double lon, double lat, double value, String time) { |
| | | this.locationName = locationName; |
| | | this.suYuanId = suYuanId; |
| | | this.lon = lon; |
| | | this.lat = lat; |
| | | this.value = value; |
| | | this.time = time; |
| | | } |
| | | |
| | | private static final long serialVersionUID = 3440478664982471286L; |
| | |
| | | private double lat; |
| | | @ApiModelProperty(value = "数值") |
| | | private double value; |
| | | @ApiModelProperty(value = "时间") |
| | | private String time; |
| | | public String getLocationName() { |
| | | return locationName; |
| | | } |
| | |
| | | public void setLat(double lat) { |
| | | this.lat = lat; |
| | | } |
| | | |
| | | public String getTime() { |
| | | return time; |
| | | } |
| | | |
| | | public void setTime(String time) { |
| | | this.time = time; |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | list.forEach(s -> { |
| | | result.add(new WarningVo(s.getLocationName(), s.getSuYuanId(), 0.0, 0.0, s.getValue())); |
| | | String time = ymdh.format(s.getCreateTime()); |
| | | result.add(new WarningVo(s.getLocationName(), s.getSuYuanId(), 0.0, 0.0, s.getValue(), time)); |
| | | }); |
| | | return result; |
| | | } |
| | |
| | | } |
| | | } |
| | | list.forEach(s -> { |
| | | result.add(new WarningVo(s.getLocationName(), s.getSuYuanId(), 0.0, 0.0, s.getValue())); |
| | | String time = ymdh.format(s.getCreateTime()); |
| | | result.add(new WarningVo(s.getLocationName(), s.getSuYuanId(), 0.0, 0.0, s.getValue(), time)); |
| | | }); |
| | | return result; |
| | | } |
| | |
| | | for (String tab : tables) { |
| | | List<WarningDetail> alarmList = getAlarmByTime(tab, ids); |
| | | for (WarningDetail s : alarmList) { |
| | | list.add(new WarningVo(s.getLocationName(), s.getSuYuanId(), 0.0, 0.0, s.getValue())); |
| | | String time = ymdh.format(s.getCreateTime()); |
| | | list.add(new WarningVo(s.getLocationName(), s.getSuYuanId(), 0.0, 0.0, s.getValue(), time)); |
| | | } |
| | | } |
| | | for (String tab : tables) { |
| | | List<WarningDetail> warnList = getWarnByTime(tab, ids); |
| | | for (WarningDetail s : warnList) { |
| | | list.add(new WarningVo(s.getLocationName(), s.getSuYuanId(), 0.0, 0.0, s.getValue())); |
| | | String time = ymdh.format(s.getCreateTime()); |
| | | list.add(new WarningVo(s.getLocationName(), s.getSuYuanId(), 0.0, 0.0, s.getValue(), time)); |
| | | } |
| | | } |
| | | |