From db9d7e4ce7f5fea229bb512244c9d94cf31b6786 Mon Sep 17 00:00:00 2001
From: 换个名字嗨起来 <577530412@qq.com>
Date: 星期三, 31 七月 2024 13:21:45 +0800
Subject: [PATCH] 修改检索内容

---
 src/main/java/com/ruoyi/doublePrevention/scheduls/SearchRectifyDateSchedule.java |    8 ++++----
 src/main/resources/mybatis/doublePrevention/PreventRiskDangerCheckLogMapper.xml  |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/java/com/ruoyi/doublePrevention/scheduls/SearchRectifyDateSchedule.java b/src/main/java/com/ruoyi/doublePrevention/scheduls/SearchRectifyDateSchedule.java
index 1b25894..f80bddf 100644
--- a/src/main/java/com/ruoyi/doublePrevention/scheduls/SearchRectifyDateSchedule.java
+++ b/src/main/java/com/ruoyi/doublePrevention/scheduls/SearchRectifyDateSchedule.java
@@ -138,10 +138,10 @@
                     dangerCheckLog.setReportTime(calendar.getTime());
                     dangerCheckLog.setId(task.getId());
 
-//                    int i = preventRiskDangerCheckLogService.updateSearchRectifyReportTask(dangerCheckLog);
-//                    if (i < 1){
-//                        logger.info("纠正出错");
-//                    }
+                    int i = preventRiskDangerCheckLogService.updateSearchRectifyReportTask(dangerCheckLog);
+                    if (i < 1){
+                        logger.info("纠正出错");
+                    }
                 }
             }else {
                 logger.info("无需纠正");
diff --git a/src/main/resources/mybatis/doublePrevention/PreventRiskDangerCheckLogMapper.xml b/src/main/resources/mybatis/doublePrevention/PreventRiskDangerCheckLogMapper.xml
index b2352f8..edeac56 100644
--- a/src/main/resources/mybatis/doublePrevention/PreventRiskDangerCheckLogMapper.xml
+++ b/src/main/resources/mybatis/doublePrevention/PreventRiskDangerCheckLogMapper.xml
@@ -50,7 +50,7 @@
 <!--    return preventRiskDangerCheckLogRepository.listSearchRectifyReportTask();-->
     <select id="listSearchRectifyReportTask" resultMap="BaseResultMap">
         select * from prevent_risk_danger_check_log
-        where  report_switch = 0 and (update_report_data_time > report_time or report_time is null) and job_id in(43,47)
+        where  job_id in(43,47) and report_time is null
     </select>
 <!--    int updateSearchRectifyReportTask(PreventRiskDangerCheckLog dangerCheckLog);-->
     <update id="updateSearchRectifyReportTask" >

--
Gitblit v1.9.2