绝缘手套(鞋)查询预警修改
This commit is contained in:
parent
81a356779f
commit
f9dd410e7e
|
|
@ -798,7 +798,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
AND sai.is_slt = '0'
|
AND sai.is_slt = '0'
|
||||||
AND mm.ma_status = 2
|
AND mm.ma_status = 2
|
||||||
AND sai.ma_id IS NOT NULL
|
AND sai.ma_id IS NOT NULL
|
||||||
AND mt2.type_id not in (6032,6008,6270,6012,6761)
|
AND mt2.type_id not in (6032,6008,6270)
|
||||||
AND bp.pro_id not in (3414,1192,3321,3595)
|
AND bp.pro_id not in (3414,1192,3321,3595)
|
||||||
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
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@
|
||||||
LEFT JOIN ma_type mt2 ON mt.parent_id = mt2.type_id
|
LEFT JOIN ma_type mt2 ON mt.parent_id = mt2.type_id
|
||||||
WHERE mm.ma_status = #{useStatus}
|
WHERE mm.ma_status = #{useStatus}
|
||||||
AND mm.next_check_time < DATE_ADD(CURDATE(), INTERVAL 30 DAY)
|
AND mm.next_check_time < DATE_ADD(CURDATE(), INTERVAL 30 DAY)
|
||||||
AND mt2.type_id not in (6032,6008,6270,6012,6761)
|
AND mt2.type_id not in (6032,6008,6270)
|
||||||
GROUP BY name;
|
GROUP BY name;
|
||||||
</select>
|
</select>
|
||||||
<select id="getListDetails" resultType="com.bonus.material.expectations.domain.ExpectationsEntity">
|
<select id="getListDetails" resultType="com.bonus.material.expectations.domain.ExpectationsEntity">
|
||||||
|
|
@ -117,7 +117,7 @@
|
||||||
AND sai.is_slt = '0'
|
AND sai.is_slt = '0'
|
||||||
AND sai.`status` = '0'
|
AND sai.`status` = '0'
|
||||||
AND mm.next_check_time < DATE_ADD(CURDATE(), INTERVAL 30 DAY)
|
AND mm.next_check_time < DATE_ADD(CURDATE(), INTERVAL 30 DAY)
|
||||||
AND mt2.type_id not in (6032,6008,6270,6012,6761)
|
AND mt2.type_id not in (6032,6008,6270)
|
||||||
GROUP BY name;
|
GROUP BY name;
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue