Browse Source

fix:

1.修复商家端数据缺少没有客户信息的bug
master
pref_mail@163.com 4 weeks ago
parent
commit
5ab86eb291
  1. 4
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineAdvanceServiceImpl.java

4
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineAdvanceServiceImpl.java

@ -1374,10 +1374,10 @@ public class TrunklineAdvanceServiceImpl extends BaseServiceImpl<TrunklineAdvanc
Set<String> orderCodeSet = orderCodeMap.keySet();
//把advanceDetailEntities中所有元素的waybillId提取到一个Set中
Set<Long> waybillIdSet = advanceDetailEntities.stream().map(TrunklineAdvanceDetailEntity::getWaybillId).collect(Collectors.toSet());
Set<String> waybillIdSet = advanceDetailEntities.stream().map(TrunklineAdvanceDetailEntity::getWaybillNo).collect(Collectors.toSet());
Map<String, WarehouseWaybillEntity> waybillEntityMap = new HashMap<>();
if (!waybillIdSet.isEmpty()) {
List<WarehouseWaybillEntity> waybillEntityList = warehouseWaybillClient.findListByWaybillIds(new ArrayList<>(waybillIdSet));
List<WarehouseWaybillEntity> waybillEntityList = warehouseWaybillClient.findWaybillBilllByWaybillNos(new ArrayList<>(waybillIdSet));
//把waybillEntityList转化成以id为key的Map
waybillEntityMap = waybillEntityList.stream().collect(Collectors.toMap(WarehouseWaybillEntity::getWaybillNo, Function.identity()));
}

Loading…
Cancel
Save