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 77ee44927..76ccb2008 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 @@ -282,22 +282,29 @@ public class DistributionStockupAppController extends BladeController { if (!list.isEmpty()) { for (DistributionStockupOrderListVO vo : list) { - planNum = planNum + vo.getPlanNum(); - scanNum = scanNum + vo.getScanNum(); - trayNum = trayNum + vo.getAllocationNumber(); -// Boolean aBoolean = distributionStockupService.getClientStockupTray(reservationId, vo.getAllocationId()); -// Boolean aBoolean = distributionReservationPackageService.selectClientStockupState(reservationId, vo.getStockArticleId()); -// vo.setTrayLean(aBoolean); -// if (ObjectUtils.isNotNull(vo.getTrayId()) && !vo.getPallet().contains(",") && !vo.isCompleteStact() && ObjectUtils.isNotNull( vo.getAllocationId()) ) { - if (ObjectUtils.isNotNull(vo.getTrayId()) && !vo.isCompleteStact()) { - List trayEntityList = basicdataTrayClient.getTrayEntityList(vo.getTrayId()); - if (ObjectUtils.isNotNull(trayEntityList) && ObjectUtils.isNotNull(trayEntityList.get(0))) { - vo.setTrayLeanName(trayEntityList.stream().map(BasicdataTrayEntity::getPalletName).collect(Collectors.joining(","))); + log.info(" 定制品备货 信息 DistributionStockupOrderListVO {}",vo); + if(ObjectUtils.isNotNull(vo)){ + if(ObjectUtils.isNotNull(vo.getPlanNum())){ + planNum = planNum + vo.getPlanNum(); + } + if(ObjectUtils.isNotNull(vo.getScanNum())){ + scanNum = scanNum + vo.getScanNum(); + } + if(ObjectUtils.isNotNull(vo.getAllocationNumber())){ + trayNum = trayNum + vo.getAllocationNumber(); + } + + if (ObjectUtils.isNotNull(vo.getTrayId()) && !vo.isCompleteStact()) { + List trayEntityList = basicdataTrayClient.getTrayEntityList(vo.getTrayId()); + if (ObjectUtils.isNotNull(trayEntityList) && ObjectUtils.isNotNull(trayEntityList.get(0))) { + vo.setTrayLeanName(trayEntityList.stream().map(BasicdataTrayEntity::getPalletName).collect(Collectors.joining(","))); + } + //有没有可用整托配货的数据 + vo.setTrayLean(distributionStockupService.getTrayBoot(vo, stockupDTO.getTypeService())); } - //有没有可用整托配货的数据 - vo.setTrayLean(distributionStockupService.getTrayBoot(vo, stockupDTO.getTypeService())); } + } if (IsOrNoConstant.yes.getValue().equals(stockupDTO.getIsZero())){ //查询客户零担计划数量 diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java index 1f67a8b19..f10c2859b 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java @@ -1516,6 +1516,13 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { try { + if(ObjectUtils.isNull(brand)){ + log.info( " 品牌 为null 不执行 后续的代码"); + return ; + } + + + log.info(">>>>>>>>>>>>>>> 文员复核推送 品牌 {} ", brand); assert brand != null; @@ -1557,6 +1564,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { //....工厂 } catch (Exception e) { + log.error("sendReviewFactory ",e); throw new RuntimeException(e); } }