feat(pricing): 增加券码重复使用功能并优化相关接口

- 在 VoucherCodeResp 和 VoucherInfo 中添加可重复使用券码相关字段
- 新增 getVoucherDetail、getVoucherUsageSummary 和 getBatchOverview接口
- 优化 calculateVoucherDiscount 接口,支持重复使用券码的计算
- 在 PriceVoucherUsageRecordMapper 中添加按券码ID和用户ID查询使用记录的方法
This commit is contained in:
2025-09-16 19:46:56 +08:00
parent 90a21c0933
commit 8380b02fbb
6 changed files with 346 additions and 0 deletions

View File

@@ -114,6 +114,10 @@ public class VoucherInfo {
* 剩余可使用次数
*/
private Integer remainingUseCount;
/**
* 是否还能使用
*/
private Boolean canUseMore;
/**
* 最后使用时间