| | |
| | | Double CO = null; |
| | | Double O3 = null; |
| | | String primaryPollutant = null; |
| | | String AQI = null; |
| | | String value = cityAqiDaily.getValue(); |
| | | JSONObject jsonObject = new JSONObject(); |
| | | jsonObject = JSONObject.parseObject(value); |
| | |
| | | if (!ObjectUtils.isEmpty(jsonObject.get("primaryPollutant"))){ |
| | | primaryPollutant = jsonObject.get("primaryPollutant").toString(); |
| | | } |
| | | if (!ObjectUtils.isEmpty(jsonObject.get("AQI"))){ |
| | | AQI = jsonObject.get("AQI").toString(); |
| | | } |
| | | Map<String,Object> valueMap = new HashMap<>(); |
| | | valueMap.put("PM2_5",PM2_5); |
| | | valueMap.put("PM10",PM10); |
| | |
| | | valueMap.put("NO2",NO2); |
| | | valueMap.put("CO",CO); |
| | | valueMap.put("O3",O3); |
| | | valueMap.put("AQI",AQI); |
| | | valueMap.put("primaryPollutant",primaryPollutant); |
| | | Map<String,Object> monthMap = new HashMap<>(); |
| | | monthMap = resultMap.get(monthDate); |