|
|
@ -2353,18 +2353,20 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb |
|
|
|
|
|
|
|
|
|
|
|
List<Long> collect = null; |
|
|
|
List<Long> collect = null; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IPage<DistrilbutionBillLadingVO> distrilbutionBillLadingVOIPage = null; |
|
|
|
if (Func.isNotEmpty(myCurrentWarehouse)) { |
|
|
|
if (Func.isNotEmpty(myCurrentWarehouse)) { |
|
|
|
collect = new ArrayList<>(); |
|
|
|
collect = new ArrayList<>(); |
|
|
|
collect.add(myCurrentWarehouse.getId()); |
|
|
|
collect.add(myCurrentWarehouse.getId()); |
|
|
|
|
|
|
|
distrilbutionBillLadingVOIPage = baseMapper.pageList(page, distrilbutionBillLadingDTO, collect); |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
distrilbutionBillLadingVOIPage = baseMapper.getAllBillLadingByView(page, distrilbutionBillLadingDTO, collect); |
|
|
|
collect = warehouseList.stream() |
|
|
|
collect = warehouseList.stream() |
|
|
|
.map(BasicdataWarehouseEntity::getId) |
|
|
|
.map(BasicdataWarehouseEntity::getId) |
|
|
|
.collect(Collectors.toList()); |
|
|
|
.collect(Collectors.toList()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
IPage<DistrilbutionBillLadingVO> distrilbutionBillLadingVOIPage = baseMapper.pageList(page, distrilbutionBillLadingDTO, collect); |
|
|
|
|
|
|
|
List<DistrilbutionBillLadingVO> records = distrilbutionBillLadingVOIPage.getRecords(); |
|
|
|
List<DistrilbutionBillLadingVO> records = distrilbutionBillLadingVOIPage.getRecords(); |
|
|
|
|
|
|
|
|
|
|
|
// 获取所有的提货单ID
|
|
|
|
// 获取所有的提货单ID
|
|
|
@ -2403,8 +2405,11 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb |
|
|
|
records.forEach(i -> { |
|
|
|
records.forEach(i -> { |
|
|
|
if (groupedEntities != null) { |
|
|
|
if (groupedEntities != null) { |
|
|
|
List<DistributionDeliveryChargeEntity> list = groupedEntities.get(i.getId()); |
|
|
|
List<DistributionDeliveryChargeEntity> list = groupedEntities.get(i.getId()); |
|
|
|
list.forEach(ii -> ii.setCostName(DictBizCache.getValue(DictBizConstant.DELIVERY_COST, ii.getCost()))); |
|
|
|
if (!Func.isEmpty(groupedEntities.get(i.getId()))){ |
|
|
|
i.setList(list); |
|
|
|
list.forEach(ii -> ii.setCostName(DictBizCache.getValue(DictBizConstant.DELIVERY_COST, ii.getCost()))); |
|
|
|
|
|
|
|
i.setList(list); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
if (groupDistributionPrintEntityEntities != null) { |
|
|
|
if (groupDistributionPrintEntityEntities != null) { |
|
|
|
List<DistributionPrintEntity> list1 = groupDistributionPrintEntityEntities.get(i.getId()); |
|
|
|
List<DistributionPrintEntity> list1 = groupDistributionPrintEntityEntities.get(i.getId()); |
|
|
|