|
|
@ -526,12 +526,22 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut |
|
|
|
DistributionStockArticleEntity stockArticleEntity = distributionStockArticleMapper.selectById(oo); //修改
|
|
|
|
DistributionStockArticleEntity stockArticleEntity = distributionStockArticleMapper.selectById(oo); //修改
|
|
|
|
stockArticleEntity.setId(oo); |
|
|
|
stockArticleEntity.setId(oo); |
|
|
|
stockArticleEntity.setGenre(2); |
|
|
|
stockArticleEntity.setGenre(2); |
|
|
|
stockArticleEntity.setTotalNumber(stockArticleEntity.getTotalNumber() - list1.size()); |
|
|
|
// stockArticleEntity.setTotalNumber(stockArticleEntity.getTotalNumber() - list1.size());
|
|
|
|
|
|
|
|
stockArticleEntity.setHandQuantity(0); |
|
|
|
distributionStockArticleMapper.updateById(stockArticleEntity); |
|
|
|
distributionStockArticleMapper.updateById(stockArticleEntity); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
DistributionStockArticleEntity distributionStockArticleEntity = distributionStockArticleMapper.selectById(oo); |
|
|
|
DistributionStockArticleEntity distributionStockArticleEntity = distributionStockArticleMapper.selectById(oo); |
|
|
|
distributionStockArticleEntity.setHandQuantity(distributionStockArticleEntity.getHandQuantity() - list1.size()); |
|
|
|
distributionStockArticleEntity.setHandQuantity(distributionStockArticleEntity.getHandQuantity() - list1.size()); |
|
|
|
distributionStockArticleEntity.setTotalNumber(distributionStockArticleEntity.getTotalNumber() - list1.size()); |
|
|
|
// distributionStockArticleEntity.setTotalNumber(distributionStockArticleEntity.getTotalNumber() - list1.size());
|
|
|
|
|
|
|
|
//统计订单在库数量
|
|
|
|
|
|
|
|
// List<DistributionParcelListEntity> parcelListEntities = this.list(Wrappers.<DistributionParcelListEntity>query().lambda()
|
|
|
|
|
|
|
|
// .eq(DistributionParcelListEntity::getStockArticleId, oo)
|
|
|
|
|
|
|
|
// .eq(DistributionParcelListEntity::getWarehouseId, myCurrentWarehouse.getId())
|
|
|
|
|
|
|
|
// );
|
|
|
|
|
|
|
|
// int sum = parcelListEntities.stream().filter(p -> "1".equals(p.getConditions())).mapToInt(DistributionParcelListEntity::getQuantity).sum();
|
|
|
|
|
|
|
|
// distributionStockArticleEntity.setHandQuantity(sum);
|
|
|
|
|
|
|
|
// distributionStockArticleEntity.setIncomingNum(sum);
|
|
|
|
|
|
|
|
|
|
|
|
distributionStockArticleMapper.updateById(distributionStockArticleEntity); |
|
|
|
distributionStockArticleMapper.updateById(distributionStockArticleEntity); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|