From 2abda9dd0aed54e5a5abc728b2114b0cb2599358 Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" <123456> Date: Thu, 24 Aug 2023 19:15:10 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AF=B9=E6=A2=A6=E5=A4=A9=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E5=85=B6=E5=AE=83=E4=BB=93=E5=BA=93=E7=9A=84=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E4=B8=8D=E8=BF=9B=E8=A1=8C=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../comfac/service/impl/AsyncDataServiceImpl.java | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/blade-service/logpm-factory/src/main/java/com/logpm/factory/comfac/service/impl/AsyncDataServiceImpl.java b/blade-service/logpm-factory/src/main/java/com/logpm/factory/comfac/service/impl/AsyncDataServiceImpl.java index 1a06c5d53..95fb55e9a 100644 --- a/blade-service/logpm-factory/src/main/java/com/logpm/factory/comfac/service/impl/AsyncDataServiceImpl.java +++ b/blade-service/logpm-factory/src/main/java/com/logpm/factory/comfac/service/impl/AsyncDataServiceImpl.java @@ -31,6 +31,7 @@ import org.springblade.core.tool.utils.ObjectUtil; import org.springblade.core.tool.utils.StringUtil; import org.springframework.scheduling.annotation.Async; import org.springframework.stereotype.Service; +import org.springframework.util.StringUtils; import java.time.LocalDate; import java.util.ArrayList; @@ -266,10 +267,19 @@ public class AsyncDataServiceImpl implements IAsyncDataService { orderQueryWrapper.eq("status", 1) .eq("main_id", mainId) .eq("is_deleted", 0); - List mtFactoryOrders = mtFactoryOrderService.list(orderQueryWrapper); + List serviceNumEntityList = new ArrayList<>(); - log.info("#########handlerMtDataToHt: 待处理的订单数量为{}", mtFactoryOrders.size()); MtFactoryOrderMain mtFactoryOrderMain = mtFactoryOrderMainService.getById(mainId); + + if(StringUtil.isBlank(mtFactoryOrderMain.getCenterWarehouseName())||!(mtFactoryOrderMain.getCenterWarehouseName().contains("汇通")) ){ + log.info("################handlerMtDataToHt: 这个派车单不推送到老系统 派车单号 {}",mtFactoryOrderMain.getInvoiceOrderCode()); + return ; + } + + + List mtFactoryOrders = mtFactoryOrderService.list(orderQueryWrapper); + log.info("#########handlerMtDataToHt: 待处理的订单数量为{}", mtFactoryOrders.size()); + for (MtFactoryOrder mtFactoryOrder : mtFactoryOrders) { Long orderId = mtFactoryOrder.getId(); Integer advanceId = null;