You've already forked FrameTour-BE
feat(pricing): 添加商品一口价优惠支持检查
- 在 PriceProductConfig 实体中新增 canUseOnePrice 字段 - 更新数据库插入和更新语句,支持 canUseOnePrice 字段持久化- 在 OnePricePurchaseDiscountProvider 中实现商品一口价优惠支持检查逻辑 - 新增 areAllProductsSupportOnePrice 方法,验证购物车商品是否支持一口价优惠 - 支持查询具体商品配置和默认配置的一口价优惠设置 - 添加日志记录和异常处理,确保检查过程不影响主流程
This commit is contained in:
@@ -68,7 +68,12 @@ public class PriceProductConfig {
|
||||
* 是否可使用券码
|
||||
*/
|
||||
private Boolean canUseVoucher;
|
||||
|
||||
|
||||
/**
|
||||
* 是否可使用一口价优惠
|
||||
*/
|
||||
private Boolean canUseOnePrice;
|
||||
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user