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/PreventCJReportCheckTaskFromWorkMapper.xml |   15 ++++++++++++++-
 1 files changed, 14 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckTaskFromWorkMapper.xml b/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckTaskFromWorkMapper.xml
index 5ca825d..607eac9 100644
--- a/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckTaskFromWorkMapper.xml
+++ b/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckTaskFromWorkMapper.xml
@@ -41,6 +41,19 @@
         limit 200
     </select>
 
+    <select id="listReportTaskFromWorkDateHD" resultMap="BaseResultMap">
+        select * from prevent_cj_report_check_task_from_work
+        where zhun_report_status = 1 and deleted = 0
+            limit 50
+    </select>
+
+    <update id="updateHDReportStatusById">
+        update prevent_cj_report_check_task_from_work set
+                                                          zhun_report_status =  #{zhunReportStatus},
+                                                          zhun_report_time = #{zhunReportTime}
+        where id = #{id}
+    </update>
+
     <select id="listWork" resultMap="BaseResultMap">
         select * from prevent_cj_report_check_task_from_work
         where work_id >= 82 and  94 >= work_id and troubleshoot_content is null
@@ -102,7 +115,7 @@
 <!--    PreventCJReportCheckTaskFromWork geByMeasureUUidAndJobId(String measureUuid, Long jobId);-->
     <select id="geByMeasureUUidAndJobId" resultMap="BaseResultMap">
         select * from prevent_cj_report_check_task_from_work
-        where work_id = #{jobId} and risk_measure_id = #{measureUuid} and deleted = 0
+        where work_id = #{jobId} and risk_measure_id = #{measureUuid} and deleted = 0 order by create_date desc limit 1
     </select>
 
 

--
Gitblit v1.9.2