|  | @@ -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);
 | 
	
	
		
			
				|  | @@ -708,6 +718,7 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
 | 
	
		
			
				|  |  |  			oldCourseSchedule.setClassDate(newCourseSchedule.getClassDate());
 | 
	
		
			
				|  |  |  			oldCourseSchedule.setStartClassTime(newCourseSchedule.getStartClassTime());
 | 
	
		
			
				|  |  |  			oldCourseSchedule.setEndClassTime(newCourseSchedule.getEndClassTime());
 | 
	
		
			
				|  |  | +			oldCourseSchedule.setStatus(newCourseSchedule.getStatus());
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  			//被修改的教师编号列表,需要将预计薪水置零
 | 
	
		
			
				|  |  |  			List<Integer> beReplaceTeacherIds=new ArrayList<>();
 |