|
|
|
@ -2442,19 +2442,6 @@ 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()))));
|
|
|
|
|
//// }
|
|
|
|
|
// }
|
|
|
|
|
distributionStockArticleVO.setReservationNum(rs.getReservationNum()); |
|
|
|
|
distributionStockArticleVOS.add(distributionStockArticleVO); |
|
|
|
|
}); |
|
|
|
@ -7015,14 +7002,15 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public boolean judgmentOrderRemove(Long deliveryId, Long orderId) { |
|
|
|
|
public boolean judgmentOrderRemove(Long deliveryId, String orderIds) { |
|
|
|
|
List<Long> list = Func.toLongList(orderIds); |
|
|
|
|
List<DistributionLoadscanEntity> loadscanEntityList = distributionLoadscanService.list(Wrappers.<DistributionLoadscanEntity>query().lambda() |
|
|
|
|
.eq(DistributionLoadscanEntity::getDeliveryId, deliveryId) |
|
|
|
|
.in(DistributionLoadscanEntity::getOrderId, list) |
|
|
|
|
.ne(DistributionLoadscanEntity::getScanStatus, LoadingStatusConstant.quxiao.getValue()) |
|
|
|
|
); |
|
|
|
|
if (Func.isNotEmpty(loadscanEntityList)) { |
|
|
|
|
Map<Long, DistributionLoadscanEntity> loadingOrderMap = loadscanEntityList.stream().collect(Collectors.toMap(DistributionLoadscanEntity::getOrderId, Function.identity(), (k1, k2) -> k2)); |
|
|
|
|
return !Func.isNotEmpty(loadingOrderMap.get(orderId)); |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|