From 521310d1449a6656b624d4d7a42cc97e9ab5eac3 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Wed, 31 Jul 2024 09:43:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=88=86=E6=94=AF=E5=A4=87?= =?UTF-8?q?=E4=BB=BD,=E9=80=89=E6=8B=A9=E5=BA=93=E5=AD=98=E8=87=AA?= =?UTF-8?q?=E5=AE=9A=E4=B9=89=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/service/thrsys/impl/ThrInvOrderServiceImpl.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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);