Commit 3a67b6ea by xugaojun

Merge remote-tracking branch 'origin/developer' into developer

parents 6cf0e325 aef18042
......@@ -447,10 +447,17 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
syncCheckDTO.setSyncStatus(syncTask.getStatusFlag());
PreDealLogInfoDTO dealLogInfoDTO = preDealService.getLastPreDataByTaskId(taskId);
if (dealLogInfoDTO == null) {
RedisUtil.delCache(sKey);
return syncCheckDTO;
}
//30分钟内没执行就重试 并在一天内
Date date = DateUtils.addMinutes(new Date(), -30);
Date dayDate = DateUtils.addDays(new Date(), -1);
if (dealLogInfoDTO.getUpdateTime().before(date)
if (dealLogInfoDTO != null && dealLogInfoDTO.getUpdateTime() != null
&& dealLogInfoDTO.getCreateTime() != null
&& dealLogInfoDTO.getUpdateTime().before(date)
&& syncTask.getUpdateTime().before(date)
&& syncTask.getCreateTime().after(dayDate)) {
logger.info("重试:{}", taskId);
......
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