|
|
@ -178,8 +178,9 @@ public class DistributionDeliveryInfoServiceImpl extends BaseServiceImpl<Distrib |
|
|
|
DistributionAppStockArticleVO distributionAppStockArticleVO = new DistributionAppStockArticleVO(); |
|
|
|
DistributionAppStockArticleVO distributionAppStockArticleVO = new DistributionAppStockArticleVO(); |
|
|
|
distributionAppStockArticleVO.setOrderCode(ord.getOrderCode()); |
|
|
|
distributionAppStockArticleVO.setOrderCode(ord.getOrderCode()); |
|
|
|
distributionAppStockArticleVO.setReservationNum(ord.getReservationNum()); |
|
|
|
distributionAppStockArticleVO.setReservationNum(ord.getReservationNum()); |
|
|
|
|
|
|
|
distributionAppStockArticleVO.setIsZero(ord.getIsZero()); |
|
|
|
Map<Long, DistributionLoadscanEntity> loadingPackage = new HashMap<>(); |
|
|
|
Map<Long, DistributionLoadscanEntity> loadingPackage = new HashMap<>(); |
|
|
|
if (ord.getIsHaveData().equals(ServiceConstant.ORDER_HAVE_DATA)){ |
|
|
|
if (ord.getIsZero().equals("0")){ |
|
|
|
List<DistributionParcelListEntity> parcelListEntities = distributionReservationMapper.selectPackageByReservationAndStockArticle(reservationId, ord.getId()); |
|
|
|
List<DistributionParcelListEntity> parcelListEntities = distributionReservationMapper.selectPackageByReservationAndStockArticle(reservationId, ord.getId()); |
|
|
|
if (Func.isNotEmpty(orderInfo.get(ord.getId()))){ |
|
|
|
if (Func.isNotEmpty(orderInfo.get(ord.getId()))){ |
|
|
|
loadingPackage = orderInfo.get(ord.getId()).stream().collect(Collectors.toMap(DistributionLoadscanEntity::getPackageId, Function.identity(), (k1, k2) -> k2)); |
|
|
|
loadingPackage = orderInfo.get(ord.getId()).stream().collect(Collectors.toMap(DistributionLoadscanEntity::getPackageId, Function.identity(), (k1, k2) -> k2)); |
|
|
@ -218,7 +219,7 @@ public class DistributionDeliveryInfoServiceImpl extends BaseServiceImpl<Distrib |
|
|
|
ks.add(appParcelListVO); |
|
|
|
ks.add(appParcelListVO); |
|
|
|
}); |
|
|
|
}); |
|
|
|
distributionAppStockArticleVO.setIsHaveAbnormalPackage(1); |
|
|
|
distributionAppStockArticleVO.setIsHaveAbnormalPackage(1); |
|
|
|
distributionAppStockArticleVO.setIsHaveAbnormalPackageName("异常"); |
|
|
|
distributionAppStockArticleVO.setIsHaveAbnormalPackageName("部分异常"); |
|
|
|
} |
|
|
|
} |
|
|
|
distributionAppStockArticleVO.setDistributionAppParcelListVOS(ks); |
|
|
|
distributionAppStockArticleVO.setDistributionAppParcelListVOS(ks); |
|
|
|
distributionAppStockArticleVO.setLoadingNub(loadingNum.get()); |
|
|
|
distributionAppStockArticleVO.setLoadingNub(loadingNum.get()); |
|
|
@ -256,27 +257,18 @@ public class DistributionDeliveryInfoServiceImpl extends BaseServiceImpl<Distrib |
|
|
|
parcelListVO.setIsScan("异常"); |
|
|
|
parcelListVO.setIsScan("异常"); |
|
|
|
loadingNum.getAndAdd(parcelListEntity.getQuantity()); |
|
|
|
loadingNum.getAndAdd(parcelListEntity.getQuantity()); |
|
|
|
distributionAppParcelListVOS.add(parcelListVO); |
|
|
|
distributionAppParcelListVOS.add(parcelListVO); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
appStockArticleVO.setIsZero(stockArticleEntity.getIsZero()); |
|
|
|
appStockArticleVO.setLoadingNub(loadingNum.get()); |
|
|
|
appStockArticleVO.setLoadingNub(loadingNum.get()); |
|
|
|
|
|
|
|
appStockArticleVO.setIsHaveAbnormalPackage(2); |
|
|
|
|
|
|
|
appStockArticleVO.setIsHaveAbnormalPackageName("整单异常"); |
|
|
|
appStockArticleVO.setDistributionAppParcelListVOS(distributionAppParcelListVOS); |
|
|
|
appStockArticleVO.setDistributionAppParcelListVOS(distributionAppParcelListVOS); |
|
|
|
appStockArticleVO.setReservationNum(0); |
|
|
|
appStockArticleVO.setReservationNum(0); |
|
|
|
distributionAppStockArticleVOS.add(appStockArticleVO); |
|
|
|
distributionAppStockArticleVOS.add(appStockArticleVO); |
|
|
|
}); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// packageListByReservationId.stream().collect(Collectors.groupingBy())
|
|
|
|
// packageListByReservationId.stream().collect(Collectors.groupingBy())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// List<DistributionAppStockArticleVO> distributionAppStockArticleVOS = new ArrayList<>();
|
|
|
|
// List<DistributionAppStockArticleVO> distributionAppStockArticleVOS = new ArrayList<>();
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// distributionAppStockArticleVOS = baseMapper.selectDistributionAppDeliveryOrderPage(page, distributionAppDeliveryListDTO);
|
|
|
|
// distributionAppStockArticleVOS = baseMapper.selectDistributionAppDeliveryOrderPage(page, distributionAppDeliveryListDTO);
|
|
|
|