查询优化

This commit is contained in:
mashuai 2025-12-01 11:06:35 +08:00
parent 7e6a9a3c83
commit 66d88e59c9
1 changed files with 3 additions and 3 deletions

View File

@ -249,12 +249,12 @@
AND mm.next_check_time is not null
AND mt.jiju_type = 2
AND mt2.type_id not in (6032,6008,6270)
AND DATEDIFF(mm.next_check_time, CURDATE()) <= 30
/*AND DATEDIFF(mm.next_check_time, CURDATE()) <= 30*/
<if test="status != null and status == 0">
AND mm.next_check_time &gt;= CURDATE()
AND mm.next_check_time &gt;= NOW()
</if>
<if test="status != null and status == 1">
AND mm.next_check_time &lt; CURDATE()
AND mm.next_check_time &lt; NOW()
</if>
<if test="keyWord != null and keyWord != ''">
and (