|
|
|
@ -565,16 +565,18 @@ public class DistributionStockListServiceImpl extends BaseServiceImpl<Distributi
|
|
|
|
|
} |
|
|
|
|
distributionStockListInfo.setId(null); |
|
|
|
|
//对原来的库存品进行数据维护
|
|
|
|
|
one.setQuantityStock(one.getQuantityStock() - distributionStockListDTO.getUnpackingQuantity()); |
|
|
|
|
int num = one.getQuantityStock() - distributionStockListDTO.getUnpackingQuantity(); |
|
|
|
|
one.setQuantityStock(num); |
|
|
|
|
one.setUnpackingQuantity(one.getUnpackingQuantity() + distributionStockListDTO.getUnpackingQuantity()); |
|
|
|
|
one.setUnpack(true); |
|
|
|
|
one.setOutboundQuantity(one.getOutboundQuantity() + distributionStockListDTO.getUnpackingQuantity()); |
|
|
|
|
int num = one.getQuantityStock() - distributionStockListDTO.getUnpackingQuantity(); |
|
|
|
|
if (one.getSourceType().equals("1")){ |
|
|
|
|
List<DistributionParcelListEntity> parcelListEntities = distributionParcelListService.list(Wrappers.<DistributionParcelListEntity>query().lambda() |
|
|
|
|
.eq(DistributionParcelListEntity::getWarehouseId, one.getWarehouseId()) |
|
|
|
|
.eq(DistributionParcelListEntity::getOrderCode, one.getIncomingBatch()) |
|
|
|
|
.eq(DistributionParcelListEntity::getConditions, 2) |
|
|
|
|
.ne(DistributionParcelListEntity::getOrderPackageStatus, OrderPackageStatusConstant.yichuku.getValue()) |
|
|
|
|
.ne(DistributionParcelListEntity::getOrderPackageLoadingStatus, OrderPackageLoadingStatusConstant.yizhuangche.getValue()) |
|
|
|
|
.eq(DistributionParcelListEntity::getIsTransfer, 0) |
|
|
|
|
.orderByDesc(DistributionParcelListEntity::getCreateTime) |
|
|
|
|
); |
|
|
|
|