|
@@ -1437,9 +1437,6 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
throw new BizException("请指定小课与学生");
|
|
|
}
|
|
|
Date now=new Date();
|
|
|
- if(studentRecoverInfo.getCourseCreateStartTime().before(now)){
|
|
|
- throw new BizException("排课起始时间不得小于当前时间");
|
|
|
- }
|
|
|
VipGroup vipGroup=vipGroupDao.get(studentRecoverInfo.getVipGroupId().longValue());
|
|
|
if(Objects.isNull(vipGroup)){
|
|
|
throw new BizException("指定的课程不存在");
|
|
@@ -1497,6 +1494,9 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
studentRecoverInfo.setCourseCount(teachModeSequence1.length);
|
|
|
List<CourseSchedule> newCourseSchedules = courseScheduleService.createCourses(studentRecoverInfo);
|
|
|
for(int i=0;i<newCourseSchedules.size();i++){
|
|
|
+ if(newCourseSchedules.get(i).getStartClassTime().before(now)){
|
|
|
+ throw new BizException("排课起始时间不得小于当前时间");
|
|
|
+ }
|
|
|
newCourseSchedules.get(i).setGroupType(GroupType.VIP);
|
|
|
newCourseSchedules.get(i).setMusicGroupId(vipGroup.getId().toString());
|
|
|
newCourseSchedules.get(i).setClassGroupId(classGroup.getId());
|