Browse Source

Merge branch 'dev' into pre-production

master
zhenghaoyu 10 months ago
parent
commit
a1978af6b0
  1. 33
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java
  2. 8
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java

33
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()) { if (!list.isEmpty()) {
for (DistributionStockupOrderListVO vo : list) { for (DistributionStockupOrderListVO vo : list) {
planNum = planNum + vo.getPlanNum();
scanNum = scanNum + vo.getScanNum();
trayNum = trayNum + vo.getAllocationNumber();
// Boolean aBoolean = distributionStockupService.getClientStockupTray(reservationId, vo.getAllocationId()); log.info(" 定制品备货 信息 DistributionStockupOrderListVO {}",vo);
// Boolean aBoolean = distributionReservationPackageService.selectClientStockupState(reservationId, vo.getStockArticleId()); if(ObjectUtils.isNotNull(vo)){
// vo.setTrayLean(aBoolean); if(ObjectUtils.isNotNull(vo.getPlanNum())){
// if (ObjectUtils.isNotNull(vo.getTrayId()) && !vo.getPallet().contains(",") && !vo.isCompleteStact() && ObjectUtils.isNotNull( vo.getAllocationId()) ) { planNum = planNum + vo.getPlanNum();
if (ObjectUtils.isNotNull(vo.getTrayId()) && !vo.isCompleteStact()) { }
List<BasicdataTrayEntity> trayEntityList = basicdataTrayClient.getTrayEntityList(vo.getTrayId()); if(ObjectUtils.isNotNull(vo.getScanNum())){
if (ObjectUtils.isNotNull(trayEntityList) && ObjectUtils.isNotNull(trayEntityList.get(0))) { scanNum = scanNum + vo.getScanNum();
vo.setTrayLeanName(trayEntityList.stream().map(BasicdataTrayEntity::getPalletName).collect(Collectors.joining(","))); }
if(ObjectUtils.isNotNull(vo.getAllocationNumber())){
trayNum = trayNum + vo.getAllocationNumber();
}
if (ObjectUtils.isNotNull(vo.getTrayId()) && !vo.isCompleteStact()) {
List<BasicdataTrayEntity> 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())){ if (IsOrNoConstant.yes.getValue().equals(stockupDTO.getIsZero())){
//查询客户零担计划数量 //查询客户零担计划数量

8
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java

@ -1516,6 +1516,13 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
try { try {
if(ObjectUtils.isNull(brand)){
log.info( " 品牌 为null 不执行 后续的代码");
return ;
}
log.info(">>>>>>>>>>>>>>> 文员复核推送 品牌 {} ", brand); log.info(">>>>>>>>>>>>>>> 文员复核推送 品牌 {} ", brand);
assert brand != null; assert brand != null;
@ -1557,6 +1564,7 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService {
//....工厂 //....工厂
} catch (Exception e) { } catch (Exception e) {
log.error("sendReviewFactory ",e);
throw new RuntimeException(e); throw new RuntimeException(e);
} }
} }

Loading…
Cancel
Save