|
@@ -488,10 +488,13 @@ public class TicketBoxMgrController extends BaseApiController {
|
|
|
return AjaxResult.error("参数缺失");
|
|
|
}
|
|
|
TicketBox ticketBox = ticketBoxService.getById(param.getBoxId());
|
|
|
+ Ticket ticket = ticketService.getRandOne(param.getBoxId());
|
|
|
if((ticketBox.getStatus() == TicketBoxStatusEnum.PUT_ON || ticketBox.getStatus() == TicketBoxStatusEnum.PUT_OFF) && ticketBox.getType() == TicketTypeEnum.OFFLINE){
|
|
|
ticketBoxService.update(new LambdaUpdateWrapper<TicketBox>()
|
|
|
.set(TicketBox::getStatus, TicketBoxStatusEnum.STOP)
|
|
|
.eq(TicketBox::getBoxId, ticketBox.getBoxId()));
|
|
|
+ ticket.setStatus(TicketStatusEnum.STOP);
|
|
|
+ ticketService.saveOrUpdate(ticket);
|
|
|
}else {
|
|
|
return AjaxResult.error("当前不是已上架的线下盲票,不能进行停售操作");
|
|
|
}
|