|
|
|
@ -2382,19 +2382,19 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
reservationStockarticleEntityList.forEach(rs -> { |
|
|
|
|
DistributionStockArticleEntity stockArticleEntity = distributionStockArticleService.getById(rs.getStockArticleId()); |
|
|
|
|
DistributionStockArticleVO distributionStockArticleVO = DistributionStockArticleWrapper.build().entityVO(stockArticleEntity); |
|
|
|
|
if (rs.getIsZero().equals(IsOrNoConstant.no.getValue())) { |
|
|
|
|
List<DistributionReservationPackageEntity> reservationPackageEntityList = distributionReservationPackageService.list(Wrappers.<DistributionReservationPackageEntity>query().lambda().eq(DistributionReservationPackageEntity::getReservationId, rs.getReservationId()).eq(DistributionReservationPackageEntity::getStockArticleId, stockArticleEntity.getId()).ne(DistributionReservationPackageEntity::getPacketBarStatus, ReservationPackageStatusConstant.quxiao.getValue())); |
|
|
|
|
if (Func.isNotEmpty(reservationPackageEntityList)) { |
|
|
|
|
ArrayList<DistributionParcelListVO> distributionParcelListVOS = new ArrayList<>(); |
|
|
|
|
reservationPackageEntityList.forEach(rp -> { |
|
|
|
|
DistributionParcelListEntity parcelListEntity = distributionParcelListService.getById(rp.getParceListId()); |
|
|
|
|
DistributionParcelListVO distributionParcelListVO = DistributionParcelListWrapper.build().entityVO(parcelListEntity); |
|
|
|
|
distributionParcelListVOS.add(distributionParcelListVO); |
|
|
|
|
}); |
|
|
|
|
distributionStockArticleVO.setPackageList(distributionParcelListVOS); |
|
|
|
|
distributionStockArticleVO.setParcelListVOS(DistributionParcelListWrapper.build().listVO(distributionParcelListService.getBaseMapper().selectList(Wrappers.<DistributionParcelListEntity>query().lambda().eq(DistributionParcelListEntity::getStockArticleId, rs.getStockArticleId())))); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// if (rs.getIsZero().equals(IsOrNoConstant.no.getValue())) {
|
|
|
|
|
//// List<DistributionReservationPackageEntity> reservationPackageEntityList = distributionReservationPackageService.list(Wrappers.<DistributionReservationPackageEntity>query().lambda().eq(DistributionReservationPackageEntity::getReservationId, rs.getReservationId()).eq(DistributionReservationPackageEntity::getStockArticleId, stockArticleEntity.getId()).ne(DistributionReservationPackageEntity::getPacketBarStatus, ReservationPackageStatusConstant.quxiao.getValue()));
|
|
|
|
|
//// if (Func.isNotEmpty(reservationPackageEntityList)) {
|
|
|
|
|
//// ArrayList<DistributionParcelListVO> distributionParcelListVOS = new ArrayList<>();
|
|
|
|
|
//// reservationPackageEntityList.forEach(rp -> {
|
|
|
|
|
//// DistributionParcelListEntity parcelListEntity = distributionParcelListService.getById(rp.getParceListId());
|
|
|
|
|
//// DistributionParcelListVO distributionParcelListVO = DistributionParcelListWrapper.build().entityVO(parcelListEntity);
|
|
|
|
|
//// distributionParcelListVOS.add(distributionParcelListVO);
|
|
|
|
|
//// });
|
|
|
|
|
//// distributionStockArticleVO.setPackageList(distributionParcelListVOS);
|
|
|
|
|
//// distributionStockArticleVO.setParcelListVOS(DistributionParcelListWrapper.build().listVO(distributionParcelListService.getBaseMapper().selectList(Wrappers.<DistributionParcelListEntity>query().lambda().eq(DistributionParcelListEntity::getStockArticleId, rs.getStockArticleId()))));
|
|
|
|
|
//// }
|
|
|
|
|
// }
|
|
|
|
|
distributionStockArticleVOS.add(distributionStockArticleVO); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|