소스 검색

线下票停售(修复)

zhangkaikai 2 년 전
부모
커밋
384e89ca69
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      mp-admin/src/main/java/com/qs/mp/web/controller/api/user/UserTicketOrderController.java

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