diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java index e0b7d29e6..33e60a1e5 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java @@ -1482,6 +1482,15 @@ public class DistributionStockupAppController extends BladeController { entity.setStockupAreaId(stockupDTO.getStockupAllocationId()); } distributionStockService.save(entity); + //这里尝试修改备货库存品包件的备货状态 + boolean update = distributionParcelListService.update(Wrappers.update().lambda() + .eq(DistributionParcelListEntity::getOrderPackageCode, entity.getCoding()) + .eq(DistributionParcelListEntity::getWarehouseId, myCurrentWarehouse.getId()) + .eq(DistributionParcelListEntity::getConditions, "2") + .eq(DistributionParcelListEntity::getMaterialId, entity.getMaterialId()) + .eq(DistributionParcelListEntity::getMallId, entity.getMarketId()) + .set(DistributionParcelListEntity::getOrderPackageStockupStatus, OrderPackageStockupStatusConstant.yibeihu.getValue()) + ); //扫码成功 return Resp.scanSuccess(PdaAudioLingoStatus.saomiaochenggong.getName(), audioValue); diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java index 9001ad521..71be5320e 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionAsyncServiceImpl.java @@ -3063,8 +3063,6 @@ public class DistributionAsyncServiceImpl implements IDistributionAsyncService { .eq(DistrilbutionBillStockEntity::getBillLadingId, s) .apply("order_status in ( '1' , '3')") ); - List mtReceiveContentDTOList = new ArrayList<>(); - List consigneePerson = new ArrayList<>(); if (!list.isEmpty()) { List orderIds = list.stream().map(DistrilbutionBillStockEntity::getStockArticleId).distinct().collect(Collectors.toList()); handlePushFactoryOrderIds(orderIds, s, warehouse, user);