|
@@ -1004,9 +1004,8 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
throw new BizException("指定课程不存在");
|
|
|
}
|
|
|
|
|
|
- int courseNum = courseScheduleDao.countVipGroupCourses(vipGroup.getId().intValue());
|
|
|
- if(courseNum==0){
|
|
|
- throw new BizException("未排课的课程不能进行调整");
|
|
|
+ if(vipGroup.getStatus().equals(VipGroupStatusEnum.APPLYING)){
|
|
|
+ throw new BizException("报名中的课程不能加课");
|
|
|
}
|
|
|
|
|
|
ClassGroup classGroup=classGroupDao.findByGroupAndType(vipGroupCourseAdjustInfo.getVipGroupId().toString(),GroupType.VIP.getCode());
|