From e98eeaaa5766511fdb8e6d5e412eb1c59d1f07ce Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期二, 24 六月 2025 10:24:43 +0800
Subject: [PATCH] 隐患来源功能外加仓吉基础数据定时上报

---
 src/main/resources/mybatis/doublePrevention/PreventCJReportCheckRecordFromTaskMapper.xml |   30 ++++++++++++++++++++++++++++--
 1 files changed, 28 insertions(+), 2 deletions(-)

diff --git a/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckRecordFromTaskMapper.xml b/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckRecordFromTaskMapper.xml
index 5a1295c..c5e05e2 100644
--- a/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckRecordFromTaskMapper.xml
+++ b/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckRecordFromTaskMapper.xml
@@ -54,6 +54,21 @@
         where id = #{id}
     </update>
 
+    <select id="listReportTaskRecordDateHuaiDong" resultMap="BaseResultMap">
+        select * from prevent_cj_report_check_record_from_task
+        where zhun_report_status = 1 and deleted = 0
+            limit 50
+<!--  and create_date &gt;= '2025-06-15 00:00:00' and create_date &lt;= '2025-06-16 23:59:59'-->
+    </select>
+
+    <update id="updateHDReportStatusById">
+        update prevent_cj_report_check_record_from_task set
+                                                            zhun_report_status =  #{zhunReportStatus},
+                                                            zhun_report_time = #{zhunReportTime}
+        where id = #{id}
+    </update>
+
+
 <!--    int insertRecord(PreventCJReportCheckRecordFromTask recordFromTasks);-->
     <insert id="insertRecord">
         insert into prevent_cj_report_check_record_from_task
@@ -68,12 +83,12 @@
         insert into prevent_cj_report_check_record_from_task
             (index_id, id, company_code, deleted, create_date, create_by, update_date, update_by,
              report_status, report_time,data_source, check_task_id, check_status, check_time,
-             create_by_mobile, update_by_mobile, task_id, mobile_code, defend)
+             create_by_mobile, update_by_mobile, task_id, mobile_code, defend, zhun_report_status, zhun_report_time)
         values
         <foreach collection="list" item="record" separator=",">
             (null, #{record.id}, #{record.companyCode}, #{record.deleted}, #{record.createDate}, #{record.createBy}, #{record.updateDate},#{record.updateBy},
             #{record.reportStatus}, #{record.reportTime}, #{record.dataSource}, #{record.checkTaskId}, #{record.checkStatus}, #{record.checkTime},
-            #{record.createByMobile}, #{record.updateByMobile}, #{record.taskId}, #{record.mobileCode}, #{record.defend})
+            #{record.createByMobile}, #{record.updateByMobile}, #{record.taskId}, #{record.mobileCode}, #{record.defend}, #{record.zhunReportStatus}, #{record.zhunReportTime})
         </foreach>
     </insert>
 
@@ -91,4 +106,15 @@
         where id = #{id}
     </update>
 
+    <update id="updateTaskReportStatusForRePushV1">
+        update prevent_cj_report_check_record_from_task set id=concat(substring(id,1,length(id)-4),'ccab'),report_status=1
+        where check_time &gt;= #{startTime} and check_time &lt;= #{endTime}
+    </update>
+
+    <update id="updateTaskReportStatusForRePushV2">
+        update prevent_cj_report_check_record_from_task set id=concat(substring(id,1,length(id)-4),'ccab'),report_status=1
+        where check_time &gt; #{startTime} and check_time &lt;= #{endTime}
+    </update>
+
+
 </mapper>

--
Gitblit v1.9.2