feat: 订单支持优惠金额字段,优先使用优惠金额
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Agent
2026-03-27 13:45:22 +00:00
parent 2f8a34e2e0
commit 0fe6f473df
3 changed files with 39 additions and 6 deletions

View File

@@ -57,6 +57,11 @@ public class Order {
*/
private BigDecimal discountAmount;
/**
* 优惠金额(元,用户输入)
*/
private BigDecimal discountMoney;
/**
* 实收金额
* 计算公式: totalAmount - discountAmount
@@ -64,7 +69,7 @@ public class Order {
private BigDecimal actualAmount;
/**
* 折扣率(百分比)
* 折扣率(百分比,保留此逻辑)
*/
private BigDecimal discountRate;