|
@@ -960,8 +960,14 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
user.getId());
|
|
|
|
|
|
if(Objects.nonNull(oldOrder)&&oldOrder.getStatus().equals(DealStatusEnum.SUCCESS)){
|
|
|
+ if("36".equals(user.getOrganId())){
|
|
|
+ throw new BizException("您已预约过此课程");
|
|
|
+ }
|
|
|
throw new BizException("您已购买过此课程");
|
|
|
}else if(Objects.nonNull(oldOrder)&&oldOrder.getStatus().equals(DealStatusEnum.ING)){
|
|
|
+ if("36".equals(user.getOrganId())){
|
|
|
+ throw new BizException("您已预约过此课程,请等待处理结果");
|
|
|
+ }
|
|
|
throw new BizException("您有处理中的订单,请等待处理结果");
|
|
|
}else{
|
|
|
if(classGroup.getStudentNum()>=classGroup.getExpectStudentNum()){
|