You've already forked FrameTour-BE
feat(pricing): 增加商品和打包配置的优惠券及券码使用限制
- 在 PriceBundleConfig 和 PriceProductConfig 中添加是否可使用优惠券和券码的字段 - 修改 CouponDiscountProvider 和 VoucherDiscountProvider,增加对商品和打包配置的检查 - 更新 PriceCalculationServiceImpl 中的优惠计算逻辑,将一口价改为打包购买 - 调整 DiscountDetail 中的描述和排序顺序,以适应新的优惠方式
This commit is contained in:
@@ -60,6 +60,16 @@ public class PriceBundleConfig {
|
||||
*/
|
||||
private Boolean isActive;
|
||||
|
||||
/**
|
||||
* 是否可使用优惠券
|
||||
*/
|
||||
private Boolean canUseCoupon;
|
||||
|
||||
/**
|
||||
* 是否可使用券码
|
||||
*/
|
||||
private Boolean canUseVoucher;
|
||||
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
@@ -59,6 +59,16 @@ public class PriceProductConfig {
|
||||
*/
|
||||
private Boolean isActive;
|
||||
|
||||
/**
|
||||
* 是否可使用优惠券
|
||||
*/
|
||||
private Boolean canUseCoupon;
|
||||
|
||||
/**
|
||||
* 是否可使用券码
|
||||
*/
|
||||
private Boolean canUseVoucher;
|
||||
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user