| | |
| | | hashMap.put("TVOC", "");
|
| | | hashMap.put("altitude", "");
|
| | | hashMap.put("vegetation", "");
|
| | | hashMap.put("river", "");
|
| | | hashMap.put("AQI", "");
|
| | | hashMap.put("SO2C", "");
|
| | | hashMap.put("NO2C", "");
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | for (int i = list.size(); i < foreList.size(); i++) {
|
| | | Map<String, Object> map = foreList.get(i);
|
| | | resultList.add(map);
|
| | | Map<String, Object> hashMap = new HashMap<>();
|
| | | hashMap.put("time", map.get("time").toString());
|
| | | hashMap.put("type", "实测");
|
| | | hashMap.put("city", parameters.get("city").toString());
|
| | | hashMap.put("city", parameters.get("name").toString());
|
| | | resultList.add(hashMap);
|
| | | }
|
| | |
|
| | |
| | | map.put("SO2C", map.get("SO2").toString());
|
| | | }
|
| | | if ((!map.containsKey("NO2C")) && map.containsKey("NO2")) {
|
| | | map.put("SO2C", map.get("SO2").toString());
|
| | | map.put("NO2C", map.get("NO2").toString());
|
| | | }
|
| | | if ((!map.containsKey("O3C")) && map.containsKey("O3")) {
|
| | | map.put("O3C", map.get("O3").toString());
|
| | |
| | | if ((!map.containsKey("COC")) && map.containsKey("CO")) {
|
| | | map.put("COC", map.get("CO").toString());
|
| | | }
|
| | | if ((!map.containsKey("PM25C")) && map.containsKey("PM25")) {
|
| | | map.put("PM25C", map.get("PM25").toString());
|
| | | if ((!map.containsKey("PM25C")) && map.containsKey("PM2_5")) {
|
| | | map.put("PM25C", map.get("PM2_5").toString());
|
| | | }
|
| | | if ((!map.containsKey("PM10C")) && map.containsKey("PM10")) {
|
| | | map.put("PM10C", map.get("PM10").toString());
|
| | |
| | | hashMap.put("cityCode",Integer.valueOf(map.get("code").toString()));
|
| | | Map<String, Object> jsonMap = new HashMap<>();
|
| | | for (String key : map.keySet()) {
|
| | | if (!key.equals("city") && !key.equals("time") && !key.equals("type") && !key.equals("fxTime")) {
|
| | | if (!key.equals("city") && !key.equals("time") && !key.equals("type") && !key.equals("fxTime")&&!key.equals("code")) {
|
| | | String value = map.get(key).toString();
|
| | | jsonMap.put(key, value);
|
| | | }
|