From 90b83e2ee39c9599d08a963ebf445911e5d6ff5c Mon Sep 17 00:00:00 2001 From: heheng <475597332@qq.com> Date: 星期五, 20 六月 2025 13:49:35 +0800 Subject: [PATCH] 准东数据推送优化 --- src/main/resources/mybatis/doublePrevention/PreventCJReportDangerInfoMapper.xml | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 deletions(-) diff --git a/src/main/resources/mybatis/doublePrevention/PreventCJReportDangerInfoMapper.xml b/src/main/resources/mybatis/doublePrevention/PreventCJReportDangerInfoMapper.xml index 85f165c..8cbd20e 100644 --- a/src/main/resources/mybatis/doublePrevention/PreventCJReportDangerInfoMapper.xml +++ b/src/main/resources/mybatis/doublePrevention/PreventCJReportDangerInfoMapper.xml @@ -37,6 +37,11 @@ <result column="check_accept_time" property="checkAcceptTime"/> <result column="danger_manager_id" property="dangerManagerId"/> </resultMap> + <resultMap id="BaseMapVO" type="com.ruoyi.doublePrevention.entity.ZDReport.ZDPreventCJReportDangerInfo" extends="BaseResultMap"> + <result property="postRectifyPhoto" column="post_rectify_photo"/> + <result property="rectifyAttachment" column="rectify_attachment"/> + <result property="preRectifyPhoto" column="pre_rectify_photo"/> + </resultMap> <!--IPage<PreventReportDangerInfo> getReportDangerInfoPage(Page<Object> objectPage, PreventReportDangerInfoReqDTO queryReqDTO);--> <select id="getReportDangerInfoPage" resultMap="BaseResultMap"> @@ -50,6 +55,27 @@ where report_status = 1 limit 200 </select> + + <select id="listReportDangerDateZhunDong" resultMap="BaseMapVO"> +<!-- select * from prevent_cj_report_danger_info--> +<!-- where zhun_report_status = 1--> +<!-- limit 50--> +<!--,c.pre_rectify_photo,c.post_rectify_photo,c.rectify_attachment--> + select a.* from prevent_cj_report_danger_info a +<!-- INNER JOIN prevent_risk_danger_info b on a.id = b.uuid--> +<!-- INNER JOIN tr_hidden_danger_check_point c on c.id = b.danger_check_point_id--> + where a.zhun_report_status = 1 and a.deleted = 0 +<!-- and a.create_date >= '2025-06-15 00:00:00' and a.create_date <= '2025-06-18 23:59:59'--> + limit 50 + </select> + + <update id="updateZDReportStatusById"> + update prevent_cj_report_danger_info set + zhun_report_status = #{zhunReportStatus}, + zhun_report_time = #{zhunReportTime} + where id = #{id} + </update> + <!--int updateTaskReportStatus(HandlerReportParam handlerReportParam);--> <update id="updateTaskReportStatus"> @@ -74,7 +100,7 @@ , #{hazardCode}, #{riskMeasureId}, #{checkRecordId}, #{dangerName}, #{dangerLevel}, #{dangerSrc}, #{dangerManageType} , #{dangerDesc}, #{dangerReason}, #{controlMeasures}, #{cost}, #{dangerManageDeadline}, #{dangerState}, #{hazardDangerType} , #{registrant}, #{registTime}, #{liablePerson}, #{checkAcceptPerson}, #{checkAcceptComment}, #{checkAcceptTime}, #{hazardCategory} - , #{reportStatus}, #{reportTime}, #{dataSource}, #{dangerManagerId}) + , #{reportStatus}, #{reportTime}, #{dataSource}, #{dangerManagerId}, #{zhunReportStatus}, #{zhunReportTime}) </insert> <!-- List<PreventCJReportDangerInfo> getDangerListForCheckTask();--> -- Gitblit v1.9.2