jinpengyong
2020-12-01 dc9091d686b412eab84d461d13d0611f79e65810
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>