You've already forked FrameTour-BE
feat(pricing): 新增优惠券属性门槛校验功能
- 在PriceCouponConfig实体中新增requiredAttributeKeys字段,用于配置优惠券使用门槛 - 修改MyBatis Mapper SQL语句,支持新字段的插入和更新操作 - 在CouponManagementServiceImpl中增加对requiredAttributeKeys的格式校验逻辑 - 更新CouponServiceImpl的优惠券适用性检查逻辑,增加属性门槛判断 - 在PriceCalculationServiceImpl中实现商品属性Key的自动计算与填充 - 优化价格计算服务中的能力缓存与属性Key构建逻辑 - 更新CLAUDE.md文档,补充属性门槛特性的说明
This commit is contained in:
@@ -50,6 +50,12 @@ public class PriceCouponConfig {
|
||||
* 适用商品类型(JSON)
|
||||
*/
|
||||
private String applicableProducts;
|
||||
|
||||
/**
|
||||
* 优惠券使用门槛:要求在可折扣商品范围内出现指定属性Key(JSON)
|
||||
* 为空表示不限制
|
||||
*/
|
||||
private String requiredAttributeKeys;
|
||||
|
||||
/**
|
||||
* 发行总量
|
||||
@@ -104,4 +110,4 @@ public class PriceCouponConfig {
|
||||
private Integer deleted;
|
||||
|
||||
private Date deletedAt;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user