diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/push/ProDataUseInfoMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/push/ProDataUseInfoMapper.xml
index 72276bca..528a8d59 100644
--- a/bonus-modules/bonus-material/src/main/resources/mapper/material/push/ProDataUseInfoMapper.xml
+++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/push/ProDataUseInfoMapper.xml
@@ -235,9 +235,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN ma_type mt ON sai.type_id = mt.type_id
LEFT JOIN ma_type mt2 ON mt.parent_id = mt2.type_id
left join sys_dept sd ON sd.dept_id = bp.imp_unit
- where mm.next_check_time is not null and mt.`level` = '4'
- and sai.`status`='0' and sai.end_time is null
-
+ where mm.next_check_time is not null
+ AND mm.this_check_time is not null
+ AND bp.pro_name is not null
+ and sai.`status`='0'
+ and sai.is_slt = 0
and mm.ma_status = 2
and mt2.type_id not in (6032,6008,6270)
and mt.jiju_type =2
@@ -275,9 +277,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN sys_dept sd on bp.imp_unit = sd.dept_id
LEFT JOIN ma_type mt ON sai.type_id = mt.type_id
LEFT JOIN ma_type mt2 ON mt.parent_id = mt2.type_id
- WHERE mm.next_check_time is not null AND mt.`level`=4
-
- and sai.`status`='0' and sai.end_time is null
+ WHERE mm.next_check_time is not null
+ AND mm.this_check_time is not null
+ AND bp.pro_name is not null
+ and sai.`status`='0'
+ and sai.is_slt = 0
and mm.ma_status = 2
and mt2.type_id not in (6032,6008,6270)
and mt.jiju_type =2
diff --git a/bonus-modules/bonus-material/src/main/resources/mapper/material/warningAnalysis/UseMaintenanceWarningMapper.xml b/bonus-modules/bonus-material/src/main/resources/mapper/material/warningAnalysis/UseMaintenanceWarningMapper.xml
index a300a0c3..61759c9f 100644
--- a/bonus-modules/bonus-material/src/main/resources/mapper/material/warningAnalysis/UseMaintenanceWarningMapper.xml
+++ b/bonus-modules/bonus-material/src/main/resources/mapper/material/warningAnalysis/UseMaintenanceWarningMapper.xml
@@ -248,17 +248,27 @@
AND mm.this_check_time is not null
AND mm.next_check_time is not null
AND mt.jiju_type = 2
+ and sai.`status`='0'
AND mt2.type_id not in (6032,6008,6270)
AND sd.dept_id=#{companyId}
/*AND DATEDIFF(mm.next_check_time, CURDATE()) <= 30*/
- AND mm.next_check_time >= NOW()
+ AND mm.next_check_time >= NOW()
AND mm.next_check_time < NOW()
+
+ AND mm.next_check_time < NOW() AND DATEDIFF(NOW(), mm.next_check_time) <= 7
+
+
+ AND mm.next_check_time < NOW() AND DATEDIFF(NOW(), mm.next_check_time) <=15
+
+
+ AND mm.next_check_time < NOW() AND DATEDIFF(NOW(), mm.next_check_time) <= 30
+
and (
mt4.type_name like concat('%', #{keyWord}, '%') or