|  | @@ -636,6 +636,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  |  	public void courseAdjust(List<CourseSchedule> newCourseSchedules) {
 | 
	
		
			
				|  |  | +		Date now=new Date();
 | 
	
		
			
				|  |  |  		//课程信息处理
 | 
	
		
			
				|  |  |  		List<Long> courseScheduleIds = newCourseSchedules.stream()
 | 
	
		
			
				|  |  |  				.map(CourseSchedule::getId)
 | 
	
	
		
			
				|  | @@ -662,6 +663,15 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
 | 
	
		
			
				|  |  |  			if(Objects.isNull(newCourseSchedule.getTeachMode())){
 | 
	
		
			
				|  |  |  				newCourseSchedule.setTeachMode(oldCourseSchedule.getTeachMode());
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  | +			if(newCourseSchedule.getStartClassTime().after(now)){
 | 
	
		
			
				|  |  | +				newCourseSchedule.setStatus(CourseStatusEnum.NOT_START);
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  | +			if(newCourseSchedule.getStartClassTime().before(now)&&newCourseSchedule.getEndClassTime().after(now)){
 | 
	
		
			
				|  |  | +				newCourseSchedule.setStatus(CourseStatusEnum.UNDERWAY);
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  | +			if(newCourseSchedule.getEndClassTime().before(now)){
 | 
	
		
			
				|  |  | +				newCourseSchedule.setStatus(CourseStatusEnum.OVER);
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  		});
 | 
	
		
			
				|  |  |  		//课程冲突检测
 | 
	
		
			
				|  |  |  		checkNewCourseSchedules(newCourseSchedules,false);
 |