From 2b9d73629912d3982af1d96da8f9d50b7863cd58 Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期五, 06 六月 2025 10:33:55 +0800
Subject: [PATCH] 优化每年专项数据获取,定时重推数据

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

diff --git a/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckTaskFromWorkMapper.xml b/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckTaskFromWorkMapper.xml
index 5ca825d..41f58f4 100644
--- a/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckTaskFromWorkMapper.xml
+++ b/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckTaskFromWorkMapper.xml
@@ -102,7 +102,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