feat(pricing): 增加景区优惠券统计功能并优化优惠券使用逻辑

- 新增景区优惠券统计接口和相关查询方法
- 为优惠券配置和使用记录添加景区ID字段
- 实现优惠券使用时的景区限制检查
- 优化优惠券适用性的判断逻辑,增加对景区和商品类型的检查
This commit is contained in:
2025-08-18 04:58:38 +08:00
parent 9fef17bae5
commit 9e0286e66e
10 changed files with 184 additions and 39 deletions

View File

@@ -34,4 +34,9 @@ public class CouponUseRequest {
* 优惠金额
*/
private BigDecimal discountAmount;
/**
* 景区ID
*/
private String scenicId;
}

View File

@@ -45,4 +45,9 @@ public class ProductItem {
* 小计(计算后填入)
*/
private BigDecimal subtotal;
/**
* 景区ID
*/
private String scenicId;
}