Commit 85bb81e5 authored by maoying's avatar maoying

修改报警列表时间条件查询

parent 08fcdfab
...@@ -595,15 +595,11 @@ ...@@ -595,15 +595,11 @@
<if test='dto.createDate != null and dto.createDate == "1"'> <if test='dto.createDate != null and dto.createDate == "1"'>
AND wlesa.create_date LIKE CONCAT( DATE_FORMAT( NOW( ), '%Y-%m-%d' ), '%' ) AND wlesa.create_date LIKE CONCAT( DATE_FORMAT( NOW( ), '%Y-%m-%d' ), '%' )
</if> </if>
<if test='dto.createDate != null and dto.createDate == "7"'> <if test='createDate != null and createDate == "7"'>
AND wlesa.create_date BETWEEN CONCAT( DATE_ADD( DATE_FORMAT( NOW( ), '%Y-%m-%d ' ), INTERVAL - 7 DAY ), AND wlesal.create_date > CONCAT( DATE_ADD( DATE_FORMAT( NOW( ), '%Y-%m-%d ' ), INTERVAL - 7 DAY ), ' 23:59:59' )
'00:00:00' )
AND CONCAT( DATE_FORMAT( NOW( ), '%Y-%m-%d ' ), '%', '23:59:59' )
</if> </if>
<if test='dto.createDate != null and dto.createDate == "30"'> <if test='createDate != null and createDate == "30"'>
AND wlesa.create_date BETWEEN CONCAT( DATE_ADD( DATE_FORMAT( NOW( ), '%Y-%m-%d ' ), INTERVAL - 30 DAY ), AND wlesal.create_date > CONCAT( DATE_ADD( DATE_FORMAT( NOW( ), '%Y-%m-%d ' ), INTERVAL - 30 DAY ),' 23:59:59' )
'00:00:00' )
AND CONCAT( DATE_FORMAT( NOW( ), '%Y-%m-%d ' ), '%', '23:59:59' )
</if> </if>
<if test="dto.createDate != null and dto.createDate.length() > 7"> <if test="dto.createDate != null and dto.createDate.length() > 7">
AND wlesa.create_date LIKE CONCAT( #{dto.createDate}, '%' ) AND wlesa.create_date LIKE CONCAT( #{dto.createDate}, '%' )
......
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