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("无需纠正"); 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" >