新增了优惠金额返回
This commit is contained in:
@@ -86,6 +86,9 @@ func (r *OrderProductService) GetOrderProduct(orderProductId int64) (g *dto.Orde
|
||||
// 加载药品订单优惠卷数据
|
||||
g.LoadOrderProductCoupon(orderProductCoupon)
|
||||
|
||||
// 计算优惠金额
|
||||
g.DiscountAmount = orderProduct.AmountTotal + orderProduct.LogisticsFee - orderProduct.CouponAmountTotal - orderProduct.PaymentAmountTotal
|
||||
|
||||
return g, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user