feat(order): 添加重复购买检测功能

- 新增 DuplicatePurchaseException 类用于处理重复购买异常
- 在 OrderServiceImpl 中实现重复购买检查逻辑
- 更新 CustomExceptionHandle 以处理新的重复购买异常
-优化订单创建流程,在生成订单号前增加重复购买检查
This commit is contained in:
2025-08-30 10:52:26 +08:00
parent 93a424058a
commit 792deb5c4d
4 changed files with 212 additions and 7 deletions

View File

@@ -238,6 +238,5 @@ public class VoucherPrintServiceImpl implements VoucherPrintService {
content += "<C>赠品兑换码</C>";
content += "<C>有效期:"+sdf2.format(new Date())+"</C>";
FeiETicketPrinter.doPrint("550519002", content, 1);
// 小票配对码、赠品兑换码、抵扣兑换码
}
}