|
|
|
@ -1402,6 +1402,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
|
|
|
|
|
// ----------------------------2023-09-06 PDA一键装车调整----------------------------------------
|
|
|
|
|
//1、查询该客户下是否还存在需要装车的包件和库存品
|
|
|
|
|
StringBuilder orderPackages = new StringBuilder(); |
|
|
|
|
|
|
|
|
|
//查询配送任务配车司机信息
|
|
|
|
|
DistributionDeliveryListEntity distributionDeliveryListEntity = this.getById(distrilbutionloadingscanDTO.getDeliveryId()); |
|
|
|
@ -1447,6 +1448,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
case "0": |
|
|
|
|
//订制品
|
|
|
|
|
// v.forEach(ord -> {
|
|
|
|
|
List<DistributionParcelListEntity> updatePackageList = new ArrayList<>(); |
|
|
|
|
List<DistributionParcelListEntity> parcelListEntities = distributionReservationMapper.selectPackageByReservationAndStockArticle(distrilbutionloadingscanDTO.getReservationId(), reservationStockarticleEntity.getStockArticleId()); |
|
|
|
|
for (DistributionParcelListEntity parcelListEntity : parcelListEntities) { |
|
|
|
|
DistributionLoadscanEntity packageLoadingScan = distributionLoadscanService.getOne(Wrappers.<DistributionLoadscanEntity>query().lambda().eq(DistributionLoadscanEntity::getReservationId, distrilbutionloadingscanDTO.getReservationId()).eq(DistributionLoadscanEntity::getOrderId, reservationStockarticleEntity.getStockArticleId()).eq(DistributionLoadscanEntity::getPackageId, parcelListEntity.getId()).ne(DistributionLoadscanEntity::getScanStatus, LoadingStatusConstant.quxiao.getValue())); |
|
|
|
@ -1503,12 +1505,17 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
Integer j = distributionSignforMapper.updateloadByReservationId(loadscanEntity.getDeliveryId(), loadscanEntity.getReservationId(), loadscanEntity.getPackageNub()); |
|
|
|
|
//扣减在库订单的在库数量
|
|
|
|
|
Integer k = distributionStockArticleMapper.deductionHandQuantity(loadscanEntity.getOrderId(), loadscanEntity.getLoadedNub()); |
|
|
|
|
warehouseUpdownTypeClient.downPackageOrDelTray(parcelListEntity.getOrderPackageCode(), myCurrentWarehouse.getId()); |
|
|
|
|
distributionAsyncService.checkOrderLoadingStatus(parcelListEntity.getId()); |
|
|
|
|
distributionAsyncService.checkOrderLoadingStatus(parcelListEntity.getStockArticleId()); |
|
|
|
|
updatePackageList.add(parcelListEntity); |
|
|
|
|
//拼接包条码
|
|
|
|
|
orderPackages.append(parcelListEntity.getOrderPackageCode()).append(","); |
|
|
|
|
} |
|
|
|
|
//异步修改包件状态
|
|
|
|
|
// distributionAsyncService.changeMarketDeliveryListStatus(loadscanEntity.getOrderPackageCode(), loadscanEntity.getDeliveryId());
|
|
|
|
|
} |
|
|
|
|
distributionAsyncService.updatepackageListLoadingStatus(updatePackageList); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
break; |
|
|
|
|
case "1": |
|
|
|
@ -1713,6 +1720,8 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
warehouseUpdownTypeClient.downPackageOrDelTray(orderPackages.deleteCharAt(orderPackages.length() -1).toString(), myCurrentWarehouse.getId()); |
|
|
|
|
|
|
|
|
|
return Resp.scanSuccess("操作成功", "装车成功"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|