From 5ab86eb2918bd71978f2ba3da2dfe86175512fa3 Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" Date: Wed, 25 Dec 2024 10:32:13 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=201.=E4=BF=AE=E5=A4=8D=E5=95=86?= =?UTF-8?q?=E5=AE=B6=E7=AB=AF=E6=95=B0=E6=8D=AE=E7=BC=BA=E5=B0=91=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=AE=A2=E6=88=B7=E4=BF=A1=E6=81=AF=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trunkline/service/impl/TrunklineAdvanceServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineAdvanceServiceImpl.java b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineAdvanceServiceImpl.java index 2c2230e2d..e49179184 100644 --- a/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineAdvanceServiceImpl.java +++ b/blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineAdvanceServiceImpl.java @@ -1374,10 +1374,10 @@ public class TrunklineAdvanceServiceImpl extends BaseServiceImpl orderCodeSet = orderCodeMap.keySet(); //把advanceDetailEntities中所有元素的waybillId提取到一个Set中 - Set waybillIdSet = advanceDetailEntities.stream().map(TrunklineAdvanceDetailEntity::getWaybillId).collect(Collectors.toSet()); + Set waybillIdSet = advanceDetailEntities.stream().map(TrunklineAdvanceDetailEntity::getWaybillNo).collect(Collectors.toSet()); Map waybillEntityMap = new HashMap<>(); if (!waybillIdSet.isEmpty()) { - List waybillEntityList = warehouseWaybillClient.findListByWaybillIds(new ArrayList<>(waybillIdSet)); + List waybillEntityList = warehouseWaybillClient.findWaybillBilllByWaybillNos(new ArrayList<>(waybillIdSet)); //把waybillEntityList转化成以id为key的Map waybillEntityMap = waybillEntityList.stream().collect(Collectors.toMap(WarehouseWaybillEntity::getWaybillNo, Function.identity())); }