|
|
|
@ -2659,9 +2659,10 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
int trayNum = 0; |
|
|
|
|
if (Func.isNotEmpty(distributionParcelListEntities)) { |
|
|
|
|
List<String> packageCodeList = distributionParcelListEntities.stream().map(DistributionParcelListEntity::getOrderPackageCode).collect(Collectors.toList()); |
|
|
|
|
List<WarehouseTrayGoodsEntity> collect = trayList.stream().distinct().collect(Collectors.toList()); |
|
|
|
|
for (WarehouseTrayGoodsEntity warehouseTrayGoodsEntity : collect) { |
|
|
|
|
List<WarehouseTrayGoodsEntity> trayIdList = warehouseTrayGoodsClient.getTrayIdList(warehouseTrayGoodsEntity.getTrayId().toString(), warehouseTrayGoodsEntity.getTrayCode()); |
|
|
|
|
// List<WarehouseTrayGoodsEntity> collect = trayList.stream().distinct().collect(Collectors.toList());
|
|
|
|
|
List<Long> trayIds = trayList.stream().map(WarehouseTrayGoodsEntity::getTrayId).distinct().collect(Collectors.toList()); |
|
|
|
|
for (Long trayId : trayIds) { |
|
|
|
|
List<WarehouseTrayGoodsEntity> trayIdList = warehouseTrayGoodsClient.getTrayIdList(trayId.toString(), ""); |
|
|
|
|
//判断该托盘上的货物都存在于计划之中
|
|
|
|
|
boolean isLoadingTrayFlag = trayIdList.stream().map(WarehouseTrayGoodsEntity::getAssociationValue).allMatch(t -> packageCodeList.contains(t)); |
|
|
|
|
if (isLoadingTrayFlag) { |
|
|
|
|