|
|
|
@ -846,7 +846,10 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} |
|
|
|
|
if (Func.isNotEmpty(orderPackageCodes)) { |
|
|
|
|
String orderPackages = orderPackageCodes.stream().distinct().collect(Collectors.joining(",")); |
|
|
|
|
warehouseUpdownTypeClient.downDeliveryPackage(orderPackages, myCurrentWarehouse.getId()); |
|
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
|
map.put("orderPackageCode",orderPackages); |
|
|
|
|
map.put("warehouseId",myCurrentWarehouse.getId()); |
|
|
|
|
warehouseUpdownTypeClient.downDeliveryPackage(map); |
|
|
|
|
} |
|
|
|
|
//维护预约的信息
|
|
|
|
|
distributionReservationService.maintenanceReservationInfo(distrilbutionloadingscanDTO.getReservationId()); |
|
|
|
@ -875,8 +878,11 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void extracteOrderPackageStatus(DistrilbutionloadingscanDTO distrilbutionloadingscanDTO, DistributionParcelListEntity parcelListEntity, BasicdataWarehouseEntity myCurrentWarehouse, DistributionReservationEntity reservationEntity) { |
|
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
|
map.put("orderPackageCode",parcelListEntity.getOrderPackageCode()); |
|
|
|
|
map.put("warehouseId",, myCurrentWarehouse.getId()); |
|
|
|
|
//包件配送下架
|
|
|
|
|
warehouseUpdownTypeClient.downDeliveryPackage(parcelListEntity.getOrderPackageCode(), myCurrentWarehouse.getId()); |
|
|
|
|
warehouseUpdownTypeClient.downDeliveryPackage(map); |
|
|
|
|
//维护订单的信息
|
|
|
|
|
distributionStockArticleService.maintenanceOrderInfo(parcelListEntity.getOrderCode(), myCurrentWarehouse.getId()); |
|
|
|
|
//维护预约的信息
|
|
|
|
@ -1834,7 +1840,10 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
if (Func.isNotEmpty(updatePackageList)) { |
|
|
|
|
String updownrOderPackages = updatePackageList.stream().map(DistributionParcelListEntity::getOrderPackageCode).collect(Collectors.joining(",")); |
|
|
|
|
if (Func.isNotEmpty(orderPackages)) { |
|
|
|
|
warehouseUpdownTypeClient.downDeliveryPackage(updownrOderPackages, myCurrentWarehouse.getId()); |
|
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
|
map.put("orderPackageCode",updownrOderPackages); |
|
|
|
|
map.put("warehouseId",myCurrentWarehouse.getId()); |
|
|
|
|
warehouseUpdownTypeClient.downDeliveryPackage(map); |
|
|
|
|
} |
|
|
|
|
List<Long> packageIds = updatePackageList.stream().map(DistributionParcelListEntity::getId).collect(Collectors.toList()); |
|
|
|
|
if (Func.isNotEmpty(packageIds)) { |
|
|
|
@ -5469,8 +5478,11 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
parcelListEntity.setOrderPackageLoadingStatus(OrderPackageLoadingStatusConstant.yizhuangche.getValue()); |
|
|
|
|
parcelListEntity.setOrderPackageStatus(OrderPackageStatusConstant.yichuku.getValue()); |
|
|
|
|
distributionParcelListService.updateById(parcelListEntity); |
|
|
|
|
Map<String,Object> map = new HashMap<>(); |
|
|
|
|
map.put("orderPackageCode",distrilbutionloadingscanDTO.getBarcode()); |
|
|
|
|
map.put("warehouseId",myCurrentWarehouse.getId()); |
|
|
|
|
//出库
|
|
|
|
|
warehouseUpdownTypeClient.downDeliveryPackage(distrilbutionloadingscanDTO.getBarcode(), myCurrentWarehouse.getId()); |
|
|
|
|
warehouseUpdownTypeClient.downDeliveryPackage(map); |
|
|
|
|
//查询本车次是否第一次扫码,没有则更新上车时间
|
|
|
|
|
Integer i = distributionDeliveryListMapper.updateloadingTimeById(distrilbutionloadingscanDTO.getDeliveryId()); |
|
|
|
|
//更新签收表的装车数量
|
|
|
|
|