jinpengyong
2020-08-07 0670dde143770e6b9f3a3a91e1768e5acd504126
update
2 files modified
3 ■■■■ changed files
src/main/java/com/moral/service/impl/WeatherServiceImpl.java 1 ●●●● patch | view | raw | blame | history
src/main/resources/mapper/ForecastWeatherMapper.xml 2 ●●● patch | view | raw | blame | history
src/main/java/com/moral/service/impl/WeatherServiceImpl.java
@@ -597,7 +597,6 @@
                hashMap.put("time", time);
                String cityName = map.get("city").toString();
                Area area = areaMapper.getAreaByName(cityName);
                //Map<String, Object> idMap = new HashMap<>();
                if (area == null) {
                    City city = cityMapper.getCityByName(cityName);
                    if (city == null) {
src/main/resources/mapper/ForecastWeatherMapper.xml
@@ -26,7 +26,7 @@
    </select>
    <update id="updateForecastWeather">
        update forecast_weather1 set json=#{json}
        update forecast_weather set json=#{json}
        where city_code=#{cityCode}
        and time=#{time}
    </update>