|
@@ -82,7 +82,11 @@ public class YqPayController extends BaseController {
|
|
|
CourseGroupInfo courseGroupInfo = CourseGroupInfoService.get(order.getCourseId());
|
|
|
if (courseGroupInfo.getRegNum().compareTo(courseGroupInfo.getPlanNum()) >= 0) {
|
|
|
Integer nums = orderService.getPayingOrderNums(order.getGroupId());
|
|
|
- return failed(HttpStatus.FORBIDDEN, "当前排队人数" + nums + "人,请您耐心等待");
|
|
|
+ if (nums > 0) {
|
|
|
+ return failed(HttpStatus.FORBIDDEN, "当前排队人数" + nums + "人,请您耐心等待");
|
|
|
+ } else {
|
|
|
+ return succeed("招生人数已满!");
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//课程组价格
|