|
@@ -864,6 +864,11 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
throw new BizException("指定课程不存在");
|
|
|
}
|
|
|
|
|
|
+ int courseNum = courseScheduleDao.countVipGroupCourses(vipGroup.getId().intValue());
|
|
|
+ if(courseNum==0){
|
|
|
+ throw new BizException("未排课的课程不能进行调整");
|
|
|
+ }
|
|
|
+
|
|
|
ClassGroup classGroup=classGroupDao.findByGroupAndType(vipGroupCourseAdjustInfo.getVipGroupId().toString(),GroupType.VIP.getCode());
|
|
|
if(Objects.isNull(classGroup)){
|
|
|
throw new BizException("对应班级不存在");
|