Browse Source

线下票停售(修复)

zhangkaikai 1 year ago
parent
commit
0a4258a27f

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

@@ -224,6 +224,11 @@ public class UserTicketOrderController extends BaseApiController {
             return AjaxResult.error("订单已过期,请重新下单");
             return AjaxResult.error("订单已过期,请重新下单");
         }
         }
 
 
+        TicketBox ticketBox = ticketBoxService.getById(orderSettleVO.getBoxId());
+        if (TicketBoxStatusEnum.STOP.getValue().equals(ticketBox.getType().getValue())) {
+            return AjaxResult.error("盲票已停售!");
+        }
+
         String orderId = userTicketOrderService.submitOrder(userId, orderSettleVO, userShareVO);
         String orderId = userTicketOrderService.submitOrder(userId, orderSettleVO, userShareVO);
         JSONObject jsonObject = new JSONObject();
         JSONObject jsonObject = new JSONObject();
         jsonObject.put("orderId", orderId);
         jsonObject.put("orderId", orderId);