jinpengyong
2020-09-21 f694728af353dcf32e270c0b1b27d81ba76fecd8
src/main/java/com/moral/service/impl/RealWeatherServiceImpl.java
@@ -94,6 +94,19 @@
            hashSet.add(hashMap);
        }
        Map<String, Object> smap = new HashMap<>();
        smap.put("name1", "苏州市");
        smap.put("parentName", "江苏省");
        smap.put("cityCode", 320500);
        smap.put("parentCode", 320000);
        hashSet.add(smap);
        Map<String, Object> bmap = new HashMap<>();
        bmap.put("name1", "北京市");
        bmap.put("parentName", "北京市");
        bmap.put("cityCode", 110000);
        bmap.put("parentCode", 110000);
        hashSet.add(bmap);
        Map<String,Object> kunShanMap=new HashMap<>();
        kunShanMap.put("name1","苏州市");
        kunShanMap.put("parentName","江苏省");
@@ -162,6 +175,7 @@
            resultMap.put("json",JSONObject.toJSONString(jsonMap));
            resultList.add(resultMap);
        }
        realWeatherMapper.deleteRealWeather(sdf1.format(now));
        return realWeatherMapper.insertRealWeather(resultList);
    }
}