|
@@ -304,6 +304,11 @@ public class UserTicketOrderServiceImpl extends
|
|
|
Assert.isTrue(rst, "支付回调用户购票订单处理,更新订单明细的盲票ID失败,itemId:" + orderItem.getItemId());
|
|
|
} else {
|
|
|
ticket = ticketService.getById(orderItem.getTicketId());
|
|
|
+ // 线下票更新销量,此处不做乐观锁控制,因为不用控制库存
|
|
|
+ TicketBox ticketBox = ticketBoxService.getById(ticket.getBoxId());
|
|
|
+ ticketBoxService.update(
|
|
|
+ new LambdaUpdateWrapper<TicketBox>().set(TicketBox::getSaleQty, ticketBox.getSaleQty() + 1)
|
|
|
+ .eq(TicketBox::getBoxId, ticketBox.getBoxId()));
|
|
|
}
|
|
|
// 开幸运数字,更新ticket状态为已激活
|
|
|
boolean rtn = ticketService.update(
|