refactor(pricing): 重构自动发券服务方法命名及逻辑

- 将 autoGrantFirstPrintCoupon 方法重命名为 autoGrantCoupon
- 修改 findFirstPrintCouponId 方法名为 findFirstCouponId
- 调整优惠券名称匹配逻辑,移除对"first"关键字的检查
- 更新调用方 PrinterServiceImpl 中的方法引用
- 优化自动发券异常处理,确保不影响主流程
This commit is contained in:
2025-11-15 14:28:56 +08:00
parent 19fae4bd00
commit 932081abf0
3 changed files with 20 additions and 23 deletions

View File

@@ -17,5 +17,5 @@ public interface IAutoCouponService {
* @param productType 商品类型
* @return 是否成功发券
*/
boolean autoGrantFirstPrintCoupon(Long memberId, Long faceId, Long scenicId, ProductType productType);
boolean autoGrantCoupon(Long memberId, Long faceId, Long scenicId, ProductType productType);
}