diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java index 8c1fe2a71..9cef7457e 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockupServiceImpl.java @@ -2814,9 +2814,12 @@ public class DistributionStockupServiceImpl extends BaseServiceImpl s = new AtomicReference<>(0); //已扫数量 v.stream().forEach(i -> { DistributionParcelListEntity byId = distributionParcelListService.getById(i.getAssociationId()); - if (!vo.getStockArticleId().contains(byId.getStockArticleId().toString())) { - f.set(false); + if(ObjectUtils.isNotNull(byId)){ + if (!vo.getStockArticleId().contains(byId.getStockArticleId().toString())) { + f.set(false); + } } + }); });