zhangkaikai пре 1 година
родитељ
комит
42b3d6ec73

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

@@ -157,7 +157,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("盲票已停售!");
         }
 
@@ -225,7 +225,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("盲票已停售!");
         }