Commit a25f2083 by zhouhaibao

fix(strategy): 修复超时未确认任务状态更新问题

- 修改了 SopStrategyConfirmTimeoutJob 中的任务状态更新逻辑
- 将 updateTaskStatus 方法的最后一个参数从 null 改为 DESC_TIMEOUT
- 确保超时未确认任务能够正确设置描述信息
1 parent adc50046
......@@ -43,7 +43,7 @@ public class SopStrategyConfirmTimeoutJob implements SimpleJob {
for (SopStrategyTask task : tasks) {
try {
log.info("处理超时未确认任务ID: {}, triggerTime:{}", task.getId(), task.getTriggerTime());
sopStrategyExecutionService.updateTaskStatus(task.getId(), 2, DESC_TIMEOUT, null);
sopStrategyExecutionService.updateTaskStatus(task.getId(), 2, DESC_TIMEOUT, DESC_TIMEOUT);
log.info("超时未确认任务ID {} 处理成功", task.getId());
} catch (Exception e) {
log.error("超时未确认任务ID {} 处理失败: {}", task.getId(), e.getMessage(), e);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!