From dc9091d686b412eab84d461d13d0611f79e65810 Mon Sep 17 00:00:00 2001
From: jinpengyong <jpy123456>
Date: Tue, 01 Dec 2020 16:18:09 +0800
Subject: [PATCH] PM2.5,PM10预测

---
 src/main/resources/mapper/WeatherMapper.xml |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/src/main/resources/mapper/WeatherMapper.xml b/src/main/resources/mapper/WeatherMapper.xml
index 51d8c73..9dda41b 100644
--- a/src/main/resources/mapper/WeatherMapper.xml
+++ b/src/main/resources/mapper/WeatherMapper.xml
@@ -138,11 +138,11 @@
             </if>
 
             <if test="startTemp != null">
-                and cast(value->'$.temp' as decimal(10, 1)) >= #{startTemp}
+                and cast(value->'$.temp' as decimal(10, 0)) >= #{startTemp}
             </if>
 
             <if test="endTemp != null">
-                and cast(value->'$.temp' as decimal(10, 1)) <![CDATA[<=]]> #{endTemp}
+                and cast(value->'$.temp' as decimal(10, 0)) <![CDATA[<=]]> #{endTemp}
             </if>
 
             <if test="startPressure != null">
@@ -166,10 +166,6 @@
                 <foreach collection="hours" open="(" separator="," close=")" item="hour">
                     #{hour}
                 </foreach>
-            </if>
-
-            <if test="month != null">
-                and DATE_FORMAT(time, '%m') = #{month}
             </if>
         </where>
     </select>
@@ -197,11 +193,11 @@
             </if>
 
             <if test="startTemp != null">
-                and cast(json->'$.temp' as decimal(10, 1)) >= #{startTemp}
+                and cast(json->'$.temp' as decimal(10, 0)) >= #{startTemp}
             </if>
 
             <if test="endTemp != null">
-                and cast(json->'$.temp' as decimal(10, 1)) <![CDATA[<=]]> #{endTemp}
+                and cast(json->'$.temp' as decimal(10, 0)) <![CDATA[<=]]> #{endTemp}
             </if>
 
             <if test="startPressure != null">
@@ -225,10 +221,6 @@
                 <foreach collection="hours" open="(" separator="," close=")" item="hour">
                     #{hour}
                 </foreach>
-            </if>
-
-            <if test="month != null">
-                and DATE_FORMAT(time, '%m') = #{month}
             </if>
         </where>
     </select>

--
Gitblit v1.8.0