From f0ebb071ac4828e1a5b55eccbba8d8dd9a4d80ad Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Thu, 13 Aug 2020 11:26:19 +0800
Subject: [PATCH] 根据臭氧预测算法更新接口

---
 src/main/resources/mapper/ForecastWeatherMapper.xml |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mapper/ForecastWeatherMapper.xml b/src/main/resources/mapper/ForecastWeatherMapper.xml
index 16fffbb..a7ecfcc 100644
--- a/src/main/resources/mapper/ForecastWeatherMapper.xml
+++ b/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>

--
Gitblit v1.8.0