src/main/resources/mapper/ForecastWeatherMapper.xml
@@ -7,7 +7,7 @@ <select id="getForecastHour" resultType="java.util.Map"> SELECT DATE_FORMAT(time, #{typeFormat}) time, (case when result is null then json->'$.temp' else result end) result json->'$.O3C' 'O3' from forecast_weather where time >= #{start} AND time <![CDATA[<]]> #{end} @@ -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>