Commit 6f7e2419 by fudahua

一分钟之内没完成 就重试

parent 24e1ef84
......@@ -453,7 +453,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
PreDealLogInfoDTO dealLogInfoDTO = preDealService.getLastPreDataByTaskId(taskId);
//一分钟内没执行就重试
Date date = DateUtils.addMinutes(new Date(), -1);
if (dealLogInfoDTO.getUpdateTime().before(date)) {
if (dealLogInfoDTO.getUpdateTime().before(date)&&syncTask.getUpdateTime().before(date)) {
logger.info("重试:{}",taskId);
syncTaskService.updateTaskStatus(taskId,SyncTaskStatusEnum.exception_close.getVal());
reDealDepartment(taskId,-1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment