feat(voucher): 增加查询已打印凭证和自动领券功能

- 新增 queryPrintedVoucher 方法查询已打印的凭证
- 新增 claimVoucher 方法实现自动领取凭证
- 优化 printVoucherTicket 方法,移除冗余参数
- 更新相关 mapper 和 XML 文件以支持新功能
This commit is contained in:
2025-08-25 09:36:40 +08:00
parent ea9945b9e0
commit 6b20e700f0
5 changed files with 63 additions and 9 deletions

View File

@@ -14,12 +14,10 @@ public interface VoucherPrintRecordMapper extends BaseMapper<VoucherPrintRecord>
/**
* 根据faceId、brokerId、scenicId查询已存在的打印记录
* @param faceId 用户faceId
* @param brokerId 经纪人ID
* @param scenicId 景区ID
* @return 打印记录
*/
VoucherPrintRecord selectByFaceBrokerScenic(@Param("faceId") Long faceId,
@Param("brokerId") Long brokerId,
VoucherPrintRecord selectByFaceBrokerScenic(@Param("faceId") Long faceId,
@Param("scenicId") Long scenicId);
/**