|  | @@ -1936,7 +1936,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          pauseInfos.put("teaChModeSequence", teachModeSequence);
 | 
	
		
			
				|  |  |          pauseInfos.put("coursePriceInfo",coursePrices);
 | 
	
		
			
				|  |  | -//        pauseInfos.put("days", days);
 | 
	
		
			
				|  |  | +        pauseInfos.put("days", days);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          StudentPauseInfo  studentPauseInfo=new StudentPauseInfo();
 | 
	
		
			
				|  |  |  		studentPauseInfo.setUserId(studentId);
 | 
	
	
		
			
				|  | @@ -2074,12 +2074,9 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			if(courseInfo1.containsKey("days")){
 | 
	
		
			
				|  |  | -				int surplusDays = Integer.valueOf(courseInfo1.get("days").toString());
 | 
	
		
			
				|  |  | -				LocalDate nowDate = LocalDate.now();
 | 
	
		
			
				|  |  |  				CourseSchedule courseSchedule = newCourseSchedules.stream().max(Comparator.comparing(CourseSchedule::getClassDate)).get();
 | 
	
		
			
				|  |  | -				int days = (int) nowDate.until(LocalDateTime.ofInstant(courseSchedule.getClassDate().toInstant(), DateUtil.zoneId), ChronoUnit.DAYS);
 | 
	
		
			
				|  |  | -				if(days>surplusDays){
 | 
	
		
			
				|  |  | -					throw new BizException("您必须在{}天内完成剩余课程", surplusDays);
 | 
	
		
			
				|  |  | +				if(courseSchedule.getEndClassTime().compareTo(studentRecoverInfo.getExpireDate())>0&&!DateUtil.isSameDay(courseSchedule.getEndClassTime(), studentRecoverInfo.getExpireDate())){
 | 
	
		
			
				|  |  | +					throw new BizException("排课时间不可超过{}", DateUtil.dateToString(studentRecoverInfo.getExpireDate(), "yyyy年MM月dd日"));
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  
 |