diff --git a/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java b/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java index 8962550c4..88c639e67 100644 --- a/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java +++ b/src/main/java/com/glxp/api/service/thrsys/impl/ThrInvOrderServiceImpl.java @@ -337,6 +337,15 @@ public class ThrInvOrderServiceImpl implements ThrInvOrderService { String days = getBeginAndEndDateByDays(1); filterInvProductRequest.setStartDate(stringToDate(days + " 00:00:00")); + filterInvProductRequest.setEndDate(stringToDate(days + " 12:59:59")); + if (thrInvOrderMapper.countDownloadsInRange(filterInvProductRequest.getStartDate(), filterInvProductRequest.getEndDate()) <= 0) { + handleExternalThrInvSfOrder(filterInvProductRequest); + log.info("自动抓取第三方收费出入库明细生成单据定时任务结束"); + } else { + log.info("已下载户略"); + } + + filterInvProductRequest.setStartDate(stringToDate(days + " 13:00:00")); filterInvProductRequest.setEndDate(stringToDate(days + " 23:59:59")); if (thrInvOrderMapper.countDownloadsInRange(filterInvProductRequest.getStartDate(), filterInvProductRequest.getEndDate()) <= 0) { handleExternalThrInvSfOrder(filterInvProductRequest);