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