浏览代码

+ 大屏源模块

chen.cheng 1 月之前
父节点
当前提交
94589f1a28
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      ems/ems-core/src/main/resources/mapper/ems/ElecProdForecastMapper.xml

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

@@ -97,7 +97,8 @@
         `date`
         from adm_ems_elec_prod_forecast d
         <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'">
                 and area_code = #{areaCode}
             </if>