查询优化
This commit is contained in:
parent
7e6a9a3c83
commit
66d88e59c9
|
|
@ -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 >= CURDATE()
|
||||
AND mm.next_check_time >= NOW()
|
||||
</if>
|
||||
<if test="status != null and status == 1">
|
||||
AND mm.next_check_time < CURDATE()
|
||||
AND mm.next_check_time < NOW()
|
||||
</if>
|
||||
<if test="keyWord != null and keyWord != ''">
|
||||
and (
|
||||
|
|
|
|||
Loading…
Reference in New Issue