|  | @@ -1422,6 +1422,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  			if(!CollectionUtils.isEmpty(courseScheduleIds)){
 | 
	
		
			
				|  |  |  				courseScheduleTeacherSalaryDao.batchDeleteByCourseScheduleIds(courseScheduleIds);
 | 
	
		
			
				|  |  |  				courseScheduleDao.batchDeleteCourseSchedules(courseScheduleIds);
 | 
	
		
			
				|  |  | +				teacherAttendanceDao.batchDeleteByCourseSchedules(courseScheduleIds);
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  			vipGroupDao.update(vipGroup);
 | 
	
		
			
				|  |  |  		}
 | 
	
	
		
			
				|  | @@ -1435,6 +1436,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  		if(Objects.isNull(studentRecoverInfo.getVipGroupId())||Objects.isNull(studentRecoverInfo.getUserId())){
 | 
	
		
			
				|  |  |  			throw new BizException("请指定小课与学生");
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | +		Date now=new Date();
 | 
	
		
			
				|  |  |  		VipGroup vipGroup=vipGroupDao.get(studentRecoverInfo.getVipGroupId().longValue());
 | 
	
		
			
				|  |  |  		if(Objects.isNull(vipGroup)){
 | 
	
		
			
				|  |  |  			throw new BizException("指定的课程不存在");
 | 
	
	
		
			
				|  | @@ -1492,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());
 | 
	
	
		
			
				|  | @@ -1519,8 +1524,6 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  		BigDecimal surplusCourseFee = new BigDecimal(0);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -		Date now=new Date();
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  		List<CourseSchedule> surplusCourseWithGroup = courseScheduleDao.findSurplusCourseWithGroup(GroupType.VIP, studentRecoverInfo.getVipGroupId().toString());
 | 
	
		
			
				|  |  |  		surplusCourseWithGroup.sort(Comparator.comparing(CourseSchedule::getStartClassTime));
 | 
	
		
			
				|  |  |  
 |