소스 검색

+ 大屏源模块

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>