预警分析sql修复
This commit is contained in:
parent
193a70ab7b
commit
d33c3610c3
|
|
@ -261,13 +261,13 @@
|
|||
AND mm.next_check_time < NOW()
|
||||
</if>
|
||||
<if test="status != null and status == 2">
|
||||
AND mm.next_check_time < NOW() AND DATEDIFF(NOW(), mm.next_check_time) <= 7
|
||||
AND mm.next_check_time > NOW() AND DATEDIFF(mm.next_check_time, NOW()) <= 7
|
||||
</if>
|
||||
<if test="status != null and status == 3">
|
||||
AND mm.next_check_time < NOW() AND DATEDIFF(NOW(), mm.next_check_time) <=15
|
||||
AND mm.next_check_time > NOW() AND DATEDIFF(mm.next_check_time, NOW()) <=15
|
||||
</if>
|
||||
<if test="status != null and status == 4">
|
||||
AND mm.next_check_time < NOW() AND DATEDIFF(NOW(), mm.next_check_time) <= 30
|
||||
AND mm.next_check_time > NOW() AND DATEDIFF(mm.next_check_time, NOW()) <= 30
|
||||
</if>
|
||||
<if test="keyWord != null and keyWord != ''">
|
||||
and (
|
||||
|
|
|
|||
Loading…
Reference in New Issue