|
@@ -3032,10 +3032,6 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
if (Objects.isNull(newCourseSchedule.getGroupType())) {
|
|
|
newCourseSchedule.setGroupType(oldCourseSchedule.getGroupType());
|
|
|
}
|
|
|
-
|
|
|
- if(newCourseSchedule.getStartClassTime().compareTo(date)<0){
|
|
|
- throw new BizException("调整无效,不能调整至已结束");
|
|
|
- }
|
|
|
|
|
|
//课程是否已结算
|
|
|
int settlementNum = courseScheduleTeacherSalaryDao.checkCourseIsSettlement(oldCourseSchedule.getId().intValue());
|
|
@@ -3136,6 +3132,10 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
|
|
|
if (newCourseSchedule.getEndClassTime().before(date)) {
|
|
|
newCourseSchedule.setStatus(CourseStatusEnum.OVER);
|
|
|
}
|
|
|
+
|
|
|
+ if(newCourseSchedule.getStartClassTime().compareTo(date)<0){
|
|
|
+ throw new BizException("调整无效,不能调整至已结束");
|
|
|
+ }
|
|
|
|
|
|
if (newCourseSchedule.getType() == CourseScheduleType.PRACTICE) {
|
|
|
PracticeGroup practiceGroup = practiceGroupDao.get(Long.parseLong(newCourseSchedule.getMusicGroupId()));
|