|
@@ -2930,9 +2930,9 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
if(Objects.isNull(courseSchedule.getStartClassTime())){
|
|
|
throw new BizException("请指定上课时间");
|
|
|
}
|
|
|
- CourseSchedule oldCourseSchedule = courseScheduleDao.get(courseScheduleId);
|
|
|
+ CourseSchedule oldCourseSchedule = courseScheduleDao.getSurplusCourseWithGroup(courseScheduleId);
|
|
|
if(Objects.isNull(oldCourseSchedule)){
|
|
|
- throw new BizException("未找到对应课程");
|
|
|
+ throw new BizException("调整失败: 课程状态异常");
|
|
|
}
|
|
|
if(!oldCourseSchedule.getGroupType().equals(GroupType.PRACTICE)){
|
|
|
throw new BizException("请选择陪练课");
|
|
@@ -3006,9 +3006,9 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
if(Objects.isNull(teacherId)){
|
|
|
throw new BizException("请指定上课老师");
|
|
|
}
|
|
|
- CourseSchedule oldCourseSchedule = courseScheduleDao.get(courseScheduleId);
|
|
|
+ CourseSchedule oldCourseSchedule = courseScheduleDao.getSurplusCourseWithGroup(courseScheduleId);
|
|
|
if(Objects.isNull(oldCourseSchedule)){
|
|
|
- throw new BizException("未找到对应课程");
|
|
|
+ throw new BizException("调整失败: 课程状态异常");
|
|
|
}
|
|
|
if(!oldCourseSchedule.getGroupType().equals(GroupType.PRACTICE)){
|
|
|
throw new BizException("请选择陪练课");
|