|
@@ -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>
|