提交代码

dev-discount
胡锐 2 years ago
parent e29c4aea59
commit d77f91b0f4
  1. 1
      hai-service/src/main/java/com/hai/order/service/impl/OrderServiceImpl.java

@ -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);
// 计算子订单退款金额。 // 计算子订单退款金额。

Loading…
Cancel
Save