|
@@ -1024,9 +1024,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
throw new BizException("您已预约过此课程");
|
|
|
}
|
|
|
throw new BizException("您已购买过此课程");
|
|
|
- }else if(Objects.nonNull(statusCountMap.get(DealStatusEnum.ING))&&statusCountMap.get(DealStatusEnum.ING)>0){
|
|
|
-
|
|
|
- }else{
|
|
|
+ }else if(CollectionUtils.isEmpty(oldOrders)||Objects.isNull(statusCountMap.get(DealStatusEnum.ING))){
|
|
|
if(classGroup.getStudentNum()>=classGroup.getExpectStudentNum()){
|
|
|
throw new BizException("该课程人数已达上限");
|
|
|
}
|