From 2b67ed2da39eba5824cfee7950e03be2c1a256ec Mon Sep 17 00:00:00 2001
From: heheng <475597332@qq.com>
Date: 星期一, 20 十月 2025 13:17:04 +0800
Subject: [PATCH] 新增数据上传准东
---
src/main/resources/mybatis/doublePrevention/PreventCJReportCheckRecordFromTaskMapper.xml | 32 +++++++++++++++++++++++++++++---
1 files changed, 29 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckRecordFromTaskMapper.xml b/src/main/resources/mybatis/doublePrevention/PreventCJReportCheckRecordFromTaskMapper.xml
index 5a1295c..647165a 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 >= '2025-06-15 00:00:00' and create_date <= '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.reportStatus}, null, #{record.dataSource}, #{record.checkTaskId}, #{record.checkStatus}, #{record.checkTime},
+ #{record.createByMobile}, #{record.updateByMobile}, #{record.taskId}, #{record.mobileCode}, #{record.defend}, #{record.zhunReportStatus}, null)
</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 >= #{startTime} and check_time <= #{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 > #{startTime} and check_time <= #{endTime}
+ </update>
+
+
</mapper>
--
Gitblit v1.9.2