zhangkaikai 2 жил өмнө
parent
commit
384e89ca69

+ 2 - 2
mp-admin/src/main/java/com/qs/mp/web/controller/api/user/UserTicketOrderController.java

@@ -156,7 +156,7 @@ public class UserTicketOrderController extends BaseApiController {
             orderAmt = ticketBox.getSalePrice() * param.getOrderNum();
         }
 
-        if (TicketBoxStatusEnum.STOP.getValue().equals(ticketBox.getType().getValue())) {
+        if (TicketBoxStatusEnum.STOP.getValue().equals(ticketBox.getStatus().getValue())) {
             return AjaxResult.error("盲票已停售!");
         }
 
@@ -224,7 +224,7 @@ public class UserTicketOrderController extends BaseApiController {
         }
 
         TicketBox ticketBox = ticketBoxService.getById(orderSettleVO.getBoxId());
-        if (TicketBoxStatusEnum.STOP.getValue().equals(ticketBox.getType().getValue())) {
+        if (TicketBoxStatusEnum.STOP.getValue().equals(ticketBox.getStatus().getValue())) {
             return AjaxResult.error("盲票已停售!");
         }