双重预防项目-国泰新华二开定制版
换个名字嗨起来
2024-07-31 db9d7e4ce7f5fea229bb512244c9d94cf31b6786
修改检索内容
已修改2个文件
10 ■■■■ 文件已修改
src/main/java/com/ruoyi/doublePrevention/scheduls/SearchRectifyDateSchedule.java 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mybatis/doublePrevention/PreventRiskDangerCheckLogMapper.xml 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
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" >