feat(ticket): 添加购买数量字段到用户票务实体

- 在GltUserTicket实体中新增buyQty字段用于存储购买数量
- 在票务发放服务中设置购买数量到用户票务记录
- 更新实体注解以包含购买数量的描述信息
This commit is contained in:
2026-02-09 18:55:17 +08:00
parent aa4a6d9725
commit 33f9f07037
2 changed files with 4 additions and 0 deletions

View File

@@ -70,6 +70,9 @@ public class GltUserTicket implements Serializable {
@Schema(description = "已释放数量")
private Integer releasedQty;
@Schema(description = "购买数量")
private Integer buyQty;
@Schema(description = "用户ID")
private Integer userId;

View File

@@ -257,6 +257,7 @@ public class GltTicketIssueService {
userTicket.setUsedQty(0);
// 初始可用量来自“购买量”,视为已释放
userTicket.setReleasedQty(buyQty);
userTicket.setBuyQty(buyQty);
userTicket.setUserId(order.getUserId());
userTicket.setSortNumber(0);
userTicket.setComments("订单发放套票");