燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-04-26 e68142dd60447fce6eb7cc251811c6b13311d3bc
src/main/resources/mapping/WeatherMapper.xml
@@ -13,12 +13,13 @@
    <select id="query" resultMap="WeatherResult">
        select * from yssh_weather
        <where>
           <if test="begin != null and begin != ''">
               and Time &gt;= #{begin}
           </if>
           <if test="end != null and end != ''">
               and Time &lt;= #{end}
           </if>
           1 = 1
           <if test="begin != null">
                and str_to_date(time, '%Y-%m-%d-%H:%i:%S') >= #{begin}
            </if>
            <if test="end != null">
                and str_to_date(time, '%Y-%m-%d-%H:%i:%S') &lt;= #{end}
            </if>
        </where>
    </select>