Commit 86edef60 by zhangxingda

定时任务

parent c20e2575
......@@ -84,10 +84,6 @@ public class KeyPersonRatingScheduledTaskServiceImpl {
if (rows1 > 0) {
// System.out.println("任务[" + task.getId() + "]:标记为临期");
}
int rows2 = commonService.update(namespace + "updateDoneToHistory", params);
if (rows2 > 0) {
// System.out.println("任务[" + task.getId() + "]:已办→is_history=0");
}
}
/**
......@@ -134,6 +130,8 @@ public class KeyPersonRatingScheduledTaskServiceImpl {
insert.put("batch_id",currentBatchId);
commonService.insert(namespace + "insert", insert);
commonService.update(namespace + "updateDoneToHistory", task);
}
}
}
......
......@@ -34,7 +34,7 @@
<!-- 待办→超期未办,例如:当前时间2025-10-11 大于 2025-10-10 -->
<update id="updateToOverdue" parameterType="map">
UPDATE jl_key_person_rating_history
SET do_status = '2', is_history = '0'
SET do_status = '2'
WHERE id = #{id}
AND do_status = '0'
AND DATE(NOW()) &gt; plan_end_data
......@@ -46,7 +46,7 @@
SET is_overdue = '1'
WHERE id = #{id}
AND do_status = '0'
AND DATE(NOW()) &gt; overdue_date
AND DATE(NOW()) &gt; overdue_date AND DATE(NOW()) &lt;= plan_end_data
</update>
<!-- 已办→is_history=0 -->
......@@ -54,8 +54,6 @@
UPDATE jl_key_person_rating_history
SET is_history = '0'
WHERE id = #{id}
AND do_status in ('1','2')
AND DATE(NOW()) &gt; plan_end_data
</update>
<!-- 新增任务 -->
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论