From 3e5cc40667b53b585beed720491960f05839a114 Mon Sep 17 00:00:00 2001 From: zhenghaoyu Date: Mon, 4 Nov 2024 01:09:12 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=B9=B2=E7=BA=BFbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../jobhandle/SyncOrderInfoToPlatform.java | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncOrderInfoToPlatform.java b/blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncOrderInfoToPlatform.java index 9f122e3e1..dbddb9296 100644 --- a/blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncOrderInfoToPlatform.java +++ b/blade-service/logpm-patch/src/main/java/com/logpm/patch/jobhandle/SyncOrderInfoToPlatform.java @@ -1270,23 +1270,22 @@ public class SyncOrderInfoToPlatform { public ReturnT jisuanLoadNum(String param) { log.info("############jisuanLoadNum: 计算车次数量 开始"); - if(StringUtil.isBlank(param)){ - log.warn("###########jisuanLoadNum: 车次号为空"); - throw new CustomerException(405,"车次号为空"); - } + List ls = warehouseMappingDataService.findAllDealWithWaybillNo(); - String[] split = param.split(","); + ls.forEach(json -> { + Integer id = json.getInt("id"); + String carsNo = json.getStr("waybillNo"); - for (int i = 0; i < split.length; i++) { - String carNo = split[i]; - log.info("###################jisuanLoadNum: 当前处理的车次号为 carNo={}",carNo); + log.info("###################jisuanLoadNum: 当前处理的车次号为 carsNo={}",carsNo); - TrunklineCarsLoadEntity entityByCarsNo = carsLoadClient.findEntityByCarsNo(carNo); + TrunklineCarsLoadEntity entityByCarsNo = carsLoadClient.findEntityByCarsNo(carsNo); Long loadId = entityByCarsNo.getId(); carsLoadClient.updateCardLoadNum(loadId); - } + warehouseMappingDataService.updateStatusDealwithWaybillById(id); + + }); log.info("############jisuanLoadNum: 计算车次数量 完成"); @@ -1297,3 +1296,4 @@ public class SyncOrderInfoToPlatform { } +