|  | @@ -1926,6 +1926,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  			days = (int) nowDate
 | 
	
		
			
				|  |  |  					.until((LocalDateTime.ofInstant(studentCourseInfoDto.getClassDate().toInstant(), DateUtil.zoneId).toLocalDate()), ChronoUnit.DAYS);
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | +        days += 1;
 | 
	
		
			
				|  |  |          int[] teachModeSequence=new int[userSurplusCourseInfoByGroup.size()];
 | 
	
		
			
				|  |  |          List<BigDecimal> coursePrices = new ArrayList<>();
 | 
	
		
			
				|  |  |          List<Long> courseScheduleIds=new ArrayList<>();
 | 
	
	
		
			
				|  | @@ -2074,11 +2075,11 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			if(Objects.nonNull(studentRecoverInfo.getExpireDate())){
 | 
	
		
			
				|  |  | -				CourseSchedule courseSchedule = newCourseSchedules.stream().max(Comparator.comparing(CourseSchedule::getClassDate)).get();
 | 
	
		
			
				|  |  | -				if(courseSchedule.getEndClassTime().compareTo(studentRecoverInfo.getExpireDate())>0&&!DateUtil.isSameDay(courseSchedule.getEndClassTime(), studentRecoverInfo.getExpireDate())){
 | 
	
		
			
				|  |  | -					throw new BizException("排课时间不可超过{}", DateUtil.dateToString(studentRecoverInfo.getExpireDate(), "yyyy年MM月dd日"));
 | 
	
		
			
				|  |  | +//				CourseSchedule courseSchedule = newCourseSchedules.stream().max(Comparator.comparing(CourseSchedule::getClassDate)).get();
 | 
	
		
			
				|  |  | +				if(vipGroup.getCoursesExpireDate().compareTo(studentRecoverInfo.getExpireDate())<=0||DateUtil.isSameDay(vipGroup.getCoursesExpireDate(), studentRecoverInfo.getExpireDate())){
 | 
	
		
			
				|  |  | +					throw new BizException("排课时间不可超过{}", DateUtil.dateToString(vipGroup.getCoursesExpireDate(), "yyyy年MM月dd日"));
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  | -				vipGroup.setCoursesExpireDate(courseSchedule.getEndClassTime());
 | 
	
		
			
				|  |  | +//				vipGroup.setCoursesExpireDate(courseSchedule.getEndClassTime());
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			courseScheduleService.batchAddCourseSchedule(newCourseSchedules);
 |