Commit 8aee1bc6 authored by chenhao's avatar chenhao

Merge branch 'developer' of http://39.98.45.134:8090/moa/amos-boot-biz into developer

parents 243da8f3 83001306
...@@ -916,12 +916,6 @@ ...@@ -916,12 +916,6 @@
AND date_format(wlesa.create_date,'%y-%m')=date_format(date_sub(curdate(), interval 1 AND date_format(wlesa.create_date,'%y-%m')=date_format(date_sub(curdate(), interval 1
month),'%y-%m') <!--上月--> month),'%y-%m') <!--上月-->
</if> </if>
<if test='dto.startDate != null and dto.startDate != "" and dto.endDate != null and dto.endDate != ""'>
AND DATE_FORMAT(wlesa.create_date, '%Y-%m-%d' ) <![CDATA[>=]]> DATE_FORMAT(#{dto.startDate}, '%Y-%m-%d' )
AND DATE_FORMAT(wlesa.create_date, '%Y-%m-%d' ) <![CDATA[<=]]> DATE_FORMAT(#{dto.endDate}, '%Y-%m-%d' )
</if>
<if test="dto.isFirm == 'yes'"> <if test="dto.isFirm == 'yes'">
and wlesal.confirm_type <![CDATA[<>]]> '' and wlesal.confirm_type <![CDATA[<>]]> ''
</if> </if>
...@@ -954,6 +948,9 @@ ...@@ -954,6 +948,9 @@
<if test="dto.fireEquipmentCode != null"> <if test="dto.fireEquipmentCode != null">
and d.fireEquipmentCode like CONCAT('%', #{dto.fireEquipmentCode}, '%' ) and d.fireEquipmentCode like CONCAT('%', #{dto.fireEquipmentCode}, '%' )
</if> </if>
<if test='dto.startDate != null and dto.startDate != "" and dto.endDate != null and dto.endDate != ""'>
DATE_FORMAT(d.createDate, '%Y-%m-%d' ) BETWEEN DATE_FORMAT(#{dto.startDate}, '%Y-%m-%d' ) and DATE_FORMAT(#{dto.endDate}, '%Y-%m-%d' )
</if>
</where> </where>
ORDER BY ORDER BY
d.createDate DESC d.createDate DESC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment