Commit 8f5087e5 by 墨竹

fix:空指针判断

parent 6ca18190
......@@ -450,7 +450,10 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
//30分钟内没执行就重试 并在一天内
Date date = DateUtils.addMinutes(new Date(), -30);
Date dayDate = DateUtils.addDays(new Date(), -1);
if (dealLogInfoDTO.getUpdateTime().before(date)
if (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