绝缘手套(鞋)查询预警修改
This commit is contained in:
parent
f9dd410e7e
commit
59b187558e
|
|
@ -239,7 +239,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
and sai.`status`='0' and sai.end_time is null
|
and sai.`status`='0' and sai.end_time is null
|
||||||
|
|
||||||
and mm.ma_status = 2
|
and mm.ma_status = 2
|
||||||
and mt2.type_id not in (6032,6008,6270,6012,6761)
|
and mt2.type_id not in (6032,6008,6270)
|
||||||
and mt.jiju_type =2
|
and mt.jiju_type =2
|
||||||
<if test="deptId != null">
|
<if test="deptId != null">
|
||||||
AND sd.dept_id = #{deptId}
|
AND sd.dept_id = #{deptId}
|
||||||
|
|
@ -273,7 +273,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
and sai.`status`='0' and sai.end_time is null
|
and sai.`status`='0' and sai.end_time is null
|
||||||
and mm.ma_status = 2
|
and mm.ma_status = 2
|
||||||
and mt2.type_id not in (6032,6008,6270,6012,6761)
|
and mt2.type_id not in (6032,6008,6270)
|
||||||
and mt.jiju_type =2
|
and mt.jiju_type =2
|
||||||
<if test="proId != null">
|
<if test="proId != null">
|
||||||
AND bp.pro_id = #{proId}
|
AND bp.pro_id = #{proId}
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@
|
||||||
LEFT JOIN sys_dept sd on sd.dept_id = bp.imp_unit
|
LEFT JOIN sys_dept sd on sd.dept_id = bp.imp_unit
|
||||||
WHERE
|
WHERE
|
||||||
mm.ma_status='2' and sai.is_slt = 0
|
mm.ma_status='2' and sai.is_slt = 0
|
||||||
and mt2.type_id not in (6032,6008,6270,6012,6761)
|
and mt2.type_id not in (6032,6008,6270)
|
||||||
and bp.pro_name is not null
|
and bp.pro_name is not null
|
||||||
AND mm.next_check_time BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 1 MONTH)
|
AND mm.next_check_time BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 1 MONTH)
|
||||||
<if test="keyWord != null and keyWord != ''">
|
<if test="keyWord != null and keyWord != ''">
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
WHERE
|
WHERE
|
||||||
sai.`status` = 0 and sai.is_slt = 0 and
|
sai.`status` = 0 and sai.is_slt = 0 and
|
||||||
mm.ma_status='2'
|
mm.ma_status='2'
|
||||||
and mt2.type_id not in (6032,6008,6270,6012,6761)
|
and mt2.type_id not in (6032,6008,6270)
|
||||||
and bp.external_id is not null
|
and bp.external_id is not null
|
||||||
AND mt.jiju_type =2
|
AND mt.jiju_type =2
|
||||||
AND mm.next_check_time BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 1 MONTH)
|
AND mm.next_check_time BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 1 MONTH)
|
||||||
|
|
@ -196,7 +196,7 @@
|
||||||
WHERE
|
WHERE
|
||||||
sai.`status` = 0 and sai.is_slt = 0 and
|
sai.`status` = 0 and sai.is_slt = 0 and
|
||||||
mm.ma_status='2'
|
mm.ma_status='2'
|
||||||
and mt2.type_id not in (6032,6008,6270,6012,6761)
|
and mt2.type_id not in (6032,6008,6270)
|
||||||
and bp.external_id is not null
|
and bp.external_id is not null
|
||||||
AND mt.jiju_type =2
|
AND mt.jiju_type =2
|
||||||
AND mm.next_check_time BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 15 day)
|
AND mm.next_check_time BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 15 day)
|
||||||
|
|
@ -248,7 +248,7 @@
|
||||||
AND mm.this_check_time is not null
|
AND mm.this_check_time is not null
|
||||||
AND mm.next_check_time is not null
|
AND mm.next_check_time is not null
|
||||||
AND mt.jiju_type = 2
|
AND mt.jiju_type = 2
|
||||||
AND mt2.type_id not in (6032,6008,6270,6012,6761)
|
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">
|
<if test="status != null and status == 0">
|
||||||
AND mm.next_check_time >= CURDATE()
|
AND mm.next_check_time >= CURDATE()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue