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 5cc909231..f97264647 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 @@ -1173,7 +1173,9 @@ public class DistributionStockupAppController extends BladeController { if(ObjectUtils.isNull(stockupDTO.getMallName())){ // 查询出来 重新复制 DistributionStockListEntity byId1 = distributionStockListService.getById(stockupDTO.getStockListId()); - stockupDTO.setMallName(byId1.getMallName()); + if(!ObjectUtils.isNull(byId1)){ + stockupDTO.setMallName(byId1.getMallName()); + } }