Commit 6ac38f2d authored by 332784038@qq.com's avatar 332784038@qq.com

拆单订单编辑bug修复

parent 069e192f
......@@ -2563,7 +2563,7 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
//计较体积
BigDecimal chargeVolume =
newOrderItemDOList.stream().map(OrderItemDO::getChargeVolume).
newOrderItemDOList.stream().map(OrderItemDO::getChargeVolume).filter(Objects::nonNull).
reduce(BigDecimal.ZERO, BigDecimal::add);
BigDecimal sumVolume = newOrderItemDOList.stream().map(OrderItemDO::getWarehouseInInfoVO).filter(Objects::nonNull).map(WarehouseInInfoVO::getVolume).reduce(BigDecimal.ZERO, BigDecimal::add);
orderDO.setSumVolume(sumVolume);
......@@ -2571,12 +2571,12 @@ public class OrderBusinessServiceImpl extends AbstractService<OrderMapper, Order
//计价总重量
BigDecimal chargeWeight =
newOrderItemDOList.stream().map(OrderItemDO::getChargeWeight).
newOrderItemDOList.stream().map(OrderItemDO::getChargeWeight).filter(Objects::nonNull).
reduce(BigDecimal.ZERO, BigDecimal::add);
BigDecimal sumWeight =
newOrderItemDOList.stream().map(OrderItemDO::getWarehouseInInfoVO).
filter(Objects::nonNull).map(WarehouseInInfoVO::getWeight).
filter(Objects::nonNull).map(WarehouseInInfoVO::getWeight).filter(Objects::nonNull).
reduce(BigDecimal.ZERO, BigDecimal::add);
orderDO.setSumWeight(sumWeight);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment