|
|
@ -393,6 +393,7 @@ public class OrderServiceImpl implements OrderService { |
|
|
|
childOrder.setOrderNo(order.getOrderNo()); |
|
|
|
childOrder.setOrderNo(order.getOrderNo()); |
|
|
|
childOrder.setSurplusRefundNum(childOrder.getSaleCount()); |
|
|
|
childOrder.setSurplusRefundNum(childOrder.getSaleCount()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 计算 子订单 在交易订单金额中的占比
|
|
|
|
BigDecimal ratio = childOrder.getGoodsPrice().divide(order.getTotalPrice(), 2, BigDecimal.ROUND_DOWN).setScale(2); |
|
|
|
BigDecimal ratio = childOrder.getGoodsPrice().divide(order.getTotalPrice(), 2, BigDecimal.ROUND_DOWN).setScale(2); |
|
|
|
|
|
|
|
|
|
|
|
// 计算子订单退款金额。
|
|
|
|
// 计算子订单退款金额。
|
|
|
|