绝缘手套(鞋)查询预警修改

This commit is contained in:
bonus 2025-11-17 10:47:52 +08:00
parent f9dd410e7e
commit 59b187558e
2 changed files with 6 additions and 6 deletions

View File

@ -239,7 +239,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and sai.`status`='0' and sai.end_time is null
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
<if test="deptId != null">
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 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
<if test="proId != null">
AND bp.pro_id = #{proId}

View File

@ -40,7 +40,7 @@
LEFT JOIN sys_dept sd on sd.dept_id = bp.imp_unit
WHERE
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 mm.next_check_time BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 1 MONTH)
<if test="keyWord != null and keyWord != ''">
@ -109,7 +109,7 @@
WHERE
sai.`status` = 0 and sai.is_slt = 0 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 bp.external_id is not null
AND mt.jiju_type =2
AND mm.next_check_time BETWEEN CURDATE() AND DATE_ADD(CURDATE(), INTERVAL 1 MONTH)
@ -196,7 +196,7 @@
WHERE
sai.`status` = 0 and sai.is_slt = 0 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 bp.external_id is not null
AND mt.jiju_type =2
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.next_check_time is not null
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()) &lt;= 30
<if test="status != null and status == 0">
AND mm.next_check_time &gt;= CURDATE()