| | |
| | | } |
| | | private List<Map> queryAqi24Hours(Integer orgId,boolean isGetCity) { |
| | | List<Map> aqi24HoursValues = new ArrayList<>(24); |
| | | Date start = ReportTimeFormat.dateCalc(new Date(), TimeUnits.HOUR,-24); |
| | | Date end = new Date(); |
| | | Date now = ReportTimeFormat.getFormatDate(ReportTimeFormat.HOUR_FORMAT); |
| | | Date start = ReportTimeFormat.dateCalc(now, TimeUnits.HOUR,-24); |
| | | Date end = ReportTimeFormat.dateCalc(now, TimeUnits.MILLISECOND,-1);; |
| | | TimePeriod timePeriod = new TimePeriod(start,end,TimeUnits.HOUR); |
| | | Integer code = getCode(orgId,isGetCity); |
| | | if(code == null) { |