Browse Source

+ 大屏源模块

chen.cheng 1 month ago
parent
commit
94589f1a28

+ 2 - 1
ems/ems-core/src/main/resources/mapper/ems/ElecProdForecastMapper.xml

@@ -97,7 +97,8 @@
         `date`
         `date`
         from adm_ems_elec_prod_forecast d
         from adm_ems_elec_prod_forecast d
         <where>
         <where>
-            <if test="startRecTime != null and startRecTime != ''">DATE like concat(#{startRecTime}, '%')</if>
+            <if test="startRecTime != null and startRecTime != ''">and DATE >=#{startRecTime}</if>
+            <if test="endRecTime != null and endRecTime != ''">and DATE <![CDATA[ <= ]]>#{endRecTime}</if>
             <if test="areaCode != null and areaCode != '' and areaCode != '-1'">
             <if test="areaCode != null and areaCode != '' and areaCode != '-1'">
                 and area_code = #{areaCode}
                 and area_code = #{areaCode}
             </if>
             </if>