From 6919ec8dbbbc9338cbc6b5bc1c43ba0d14d5634b Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Fri, 07 Aug 2020 17:57:06 +0800
Subject: [PATCH] update,大屏O3预测

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

diff --git a/src/main/resources/mapper/ForecastWeatherMapper.xml b/src/main/resources/mapper/ForecastWeatherMapper.xml
index 2e04576..16fffbb 100644
--- a/src/main/resources/mapper/ForecastWeatherMapper.xml
+++ b/src/main/resources/mapper/ForecastWeatherMapper.xml
@@ -2,7 +2,7 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.moral.mapper.ForecastWeatherMapper">
     <resultMap id="BaseResultMap" type="com.moral.entity.ForecastWeather">
-        <id column="monitor_point_id" property="monitorPointId" jdbcType="INTEGER"/>
+        <id column="city_code" property="cityCode" jdbcType="INTEGER"/>
     </resultMap>
     <select id="getForecastHour" resultType="java.util.Map">
         SELECT
@@ -11,7 +11,7 @@
         from forecast_weather
         where time >= #{start}
         AND time <![CDATA[<]]> #{end}
-        AND monitor_point_id=#{monitorPointId}
+        AND city_code=#{cityCode}
     </select>
 
     <select id="getForecast" resultType="java.util.Map">
@@ -20,14 +20,14 @@
         from forecast_weather
         where time >= #{start}
         AND time <![CDATA[<]]> #{end}
-        AND monitor_point_id=#{monitorPointId}
+        AND city_code=#{cityCode}
         ORDER BY
         time
     </select>
 
     <update id="updateForecastWeather">
-        update forecast_weather set json=#{json}
-        where monitor_point_id=#{monitorPointId}
+        update forecast_weather1 set json=#{json}
+        where city_code=#{cityCode}
         and time=#{time}
     </update>
 
@@ -40,6 +40,6 @@
     WHERE
     time >= #{start}
     AND time <![CDATA[<]]> #{end}
-    AND monitor_point_id = #{monitorPointId}
+    AND city_code = #{cityCode}
     </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.8.0