diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java index 359154512..5f025ec57 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java @@ -214,8 +214,8 @@ public class DistributionStockupAppController extends BladeController { List collect = list.stream().filter(i -> { // if (ObjectUtils.isNotNull(i.getTrayId()) && !i.getPallet().contains(",") && !i.isCompleteStact() && ObjectUtils.isNotNull( i.getAllocationId()) ) { - if (ObjectUtils.isNotNull(i.getTrayId()) && !i.getPallet().contains(",") && !i.isCompleteStact()) { - i.setTrayLean(distributionStockupService.getTrayBoot(i)); + if (ObjectUtils.isNotNull(i.getTrayId()) && !i.isCompleteStact()) { + i.setTrayLean(distributionStockupService.getTrayBoot(i,stockupDTO.getTypeService())); } return true; }).collect(Collectors.toList()); @@ -257,7 +257,7 @@ public class DistributionStockupAppController extends BladeController { // if (ObjectUtils.isNotNull(vo.getTrayId()) && !vo.getPallet().contains(",") && !vo.isCompleteStact() && ObjectUtils.isNotNull( vo.getAllocationId()) ) { if (ObjectUtils.isNotNull(vo.getTrayId()) && !vo.isCompleteStact() ) { //有没有可用整托配货的数据 - vo.setTrayLean(distributionStockupService.getTrayBoot(vo)); + vo.setTrayLean(distributionStockupService.getTrayBoot(vo,stockupDTO.getTypeService())); } } } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionStockupService.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionStockupService.java index 3674b2050..84683f6d8 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionStockupService.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionStockupService.java @@ -235,5 +235,5 @@ public interface IDistributionStockupService extends BaseService { + List trayIdListCode = trayIdList.stream().filter(i -> i.getTrayCode().equals(stockupDTO.getTrayBarCode())).collect(Collectors.toList()); + trayIdListCode.forEach(t -> { boolean b = finalList.stream().anyMatch(l -> l.getParcelListId().equals(t.getAssociationId())); if (b) { finalList.stream().forEach(i -> { @@ -1758,11 +1776,13 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl list1 = new ArrayList<>(); - AtomicBoolean f = new AtomicBoolean(false); + AtomicBoolean f = new AtomicBoolean(false); //是否下架 + AtomicBoolean fa = new AtomicBoolean(false); //是否有包件 voList.forEach(i -> { //查询是否已备货 DistributionParcelListEntity byId = distributionParcelListService.getById(i.getParcelListId()); if(ObjectUtils.isNotNull(byId) && !byId.getOrderPackageStockupStatus().equals(OrderPackageStockupStatusConstant.yibeihu.getValue())){ + fa.set(true); DistributionStockEntity distributionStock = new DistributionStockEntity(); //修改包件备货状态 @@ -1813,7 +1833,10 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl trayIdList = warehouseTrayGoodsClient.getTrayIdList(vo.getTrayId(), vo.getPallet()); AtomicBoolean f = new AtomicBoolean(true); trayIdList.stream().collect(Collectors.groupingBy(WarehouseTrayGoodsEntity::getTrayId)). forEach((k,v) ->{ - List di = new ArrayList<>(); +// List di = new ArrayList<>(); +// AtomicReference s = new AtomicReference<>(0); //已扫数量 v.stream().forEach( i ->{ DistributionParcelListEntity byId = distributionParcelListService.getById(i.getAssociationId()); if(!vo.getStockArticleId().contains(byId.getStockArticleId().toString())){