|
|
|
@ -4587,8 +4587,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
List<String> collect = list.stream().filter(l -> !l.getScanStatus().equals(LoadingStatusConstant.quxiao.getValue())).map(DistributionLoadscaninvnEntity::getScanUser).collect(Collectors.toList()); |
|
|
|
|
int loadingNum = list.stream().mapToInt(DistributionLoadscaninvnEntity::getLoadedNub).sum(); |
|
|
|
|
rs.setLoadedinNumber(loadingNum); |
|
|
|
|
HashSet<String> strings = new HashSet<>(); |
|
|
|
|
strings.addAll(collect); |
|
|
|
|
HashSet<String> strings = new HashSet<>(collect); |
|
|
|
|
rs.setScanUser(String.join(",", strings)); |
|
|
|
|
|
|
|
|
|
if (loadingNum > 0 && loadingNum == rs.getReservationNum()) { |
|
|
|
@ -5084,7 +5083,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} |
|
|
|
|
TrayTypeDataVO trayTypeDataVO = warehouseTrayTypeClient.selectListByTrayCode(c.getTrayCode()); |
|
|
|
|
if (Func.isNotEmpty(trayTypeDataVO)) { |
|
|
|
|
String trayName = trayTypeDataVO.getTrayName(); |
|
|
|
|
String trayName = trayTypeDataVO.getTrayCode(); |
|
|
|
|
c.setTrayName(trayName); |
|
|
|
|
List<WarehouseTrayGoodsEntity> goodsLsit = trayTypeDataVO.getGoodsLsit(); |
|
|
|
|
if (Func.isNotEmpty(goodsLsit)) { |
|
|
|
@ -5653,12 +5652,12 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
public R getZeroPackageInfo(DistrilbutionloadingscanDTO distrilbutionloadingscanDTO) { |
|
|
|
|
List<DistributionReservationStockarticleEntity> reservationStockarticleEntityList = baseMapper.selectReservationStockByDeliveryId(distrilbutionloadingscanDTO.getDeliveryId()); |
|
|
|
|
if (Func.isEmpty(reservationStockarticleEntityList)) { |
|
|
|
|
log.error("#############配送任务查询订单错误,deliveryId:{}", distrilbutionloadingscanDTO.getDeliveryId()); |
|
|
|
|
log.info("#############配送任务查询订单错误,deliveryId:{}", distrilbutionloadingscanDTO.getDeliveryId()); |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
List<Long> orderIds = reservationStockarticleEntityList.stream().filter(rs -> Func.isNotEmpty(rs.getIsZero()) && rs.getIsZero().equals(IsOrNoConstant.yes.getValue())).map(DistributionReservationStockarticleEntity::getStockArticleId).collect(Collectors.toList()); |
|
|
|
|
if (Func.isEmpty(orderIds)) { |
|
|
|
|
log.error("####################配送任务下无零担信息:{}"); |
|
|
|
|
log.info("####################配送任务下无零担信息:{}",orderIds); |
|
|
|
|
return Resp.scanFail("查询错误", "该任务无零担订单"); |
|
|
|
|
} |
|
|
|
|
List<DistributionParcelNumberVO> parcelNumberVOS = new ArrayList<>(); |
|
|
|
|