Commit 3aad3dbf by 墨竹

fix:空指针判断

parent 8f5087e5
......@@ -447,11 +447,14 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
syncCheckDTO.setSyncStatus(syncTask.getStatusFlag());
PreDealLogInfoDTO dealLogInfoDTO = preDealService.getLastPreDataByTaskId(taskId);
if (dealLogInfoDTO == null) {
return syncCheckDTO;
}
//30分钟内没执行就重试 并在一天内
Date date = DateUtils.addMinutes(new Date(), -30);
Date dayDate = DateUtils.addDays(new Date(), -1);
if (dealLogInfoDTO.getUpdateTime() != null
if (dealLogInfoDTO != null && dealLogInfoDTO.getUpdateTime() != null
&& dealLogInfoDTO.getCreateTime() != null
&& dealLogInfoDTO.getUpdateTime().before(date)
&& syncTask.getUpdateTime().before(date)
......
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