From af6d33f7c16b121538a6cdd417728e03c4ad0ef1 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期四, 19 六月 2025 16:55:19 +0800
Subject: [PATCH] 准东数据推送

---
 src/main/resources/mybatis/doublePrevention/PreventCJReportDangerInfoMapper.xml |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mybatis/doublePrevention/PreventCJReportDangerInfoMapper.xml b/src/main/resources/mybatis/doublePrevention/PreventCJReportDangerInfoMapper.xml
index 85f165c..c3602c0 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">
@@ -51,6 +56,27 @@
         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 &gt;= '2025-06-15 00:00:00' and a.create_date &lt;= '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">
         update prevent_cj_report_danger_info set

--
Gitblit v1.9.2