jinpengyong
2020-08-10 8d3bc867762a9d4d67f566f3870f2b3117485451
src/main/java/com/moral/service/impl/WeatherServiceImpl.java
@@ -338,6 +338,7 @@
            hashMap.put("TVOC", "");
            hashMap.put("altitude", "");
            hashMap.put("vegetation", "");
            hashMap.put("river", "");
            hashMap.put("AQI", "");
            hashMap.put("SO2C", "");
            hashMap.put("NO2C", "");
@@ -535,14 +536,13 @@
                }
            }
        }
        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);
        }
@@ -569,7 +569,7 @@
                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());
@@ -577,8 +577,8 @@
            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());
@@ -616,7 +616,7 @@
                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);
                    }