From 13df76c18c82520e94f21dfa3404d84fa78c0344 Mon Sep 17 00:00:00 2001 From: hongchao <3228015117@qq.com> Date: Fri, 16 Jan 2026 14:58:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=AD=A6=E5=88=86=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../material/push/ProDataUseInfoMapper.xml | 16 ++++++++++------ .../UseMaintenanceWarningMapper.xml | 12 +++++++++++- 2 files changed, 21 insertions(+), 7 deletions(-) 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