|  | @@ -258,8 +258,16 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
 | 
	
		
			
				|  |  |  		if(Objects.isNull(classDate)){
 | 
	
		
			
				|  |  |  			throw new BizException("请选择上课日期!");
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | +		Date now=new Date();
 | 
	
		
			
				|  |  |  		List<CourseScheduleDto> teacherCourseSchedulesWithDate = courseScheduleDao.getTeacherCourseSchedulesWithDate(classDate, userId.longValue(),type);
 | 
	
		
			
				|  |  |  		teacherCourseSchedulesWithDate.forEach(courseScheduleDto -> {
 | 
	
		
			
				|  |  | +			if(now.before(courseScheduleDto.getStartClassTime())){
 | 
	
		
			
				|  |  | +				courseScheduleDto.setStatus(CourseStatusEnum.NOT_START);
 | 
	
		
			
				|  |  | +			}else if(now.after(courseScheduleDto.getEndClassTime())){
 | 
	
		
			
				|  |  | +				courseScheduleDto.setStatus(CourseStatusEnum.OVER);
 | 
	
		
			
				|  |  | +			}else{
 | 
	
		
			
				|  |  | +				courseScheduleDto.setStatus(CourseStatusEnum.UNDERWAY);
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  |  			if(Objects.nonNull(courseScheduleDto.getClassGroupId())){
 | 
	
		
			
				|  |  |  				String[] studentNums = classGroupStudentMapperDao.findStudentNumByClassGroupId(courseScheduleDto.getClassGroupId().longValue());
 | 
	
		
			
				|  |  |  				courseScheduleDto.setStudentNames(org.apache.commons.lang3.StringUtils.join(studentNums, ","));
 | 
	
	
		
			
				|  | @@ -424,7 +432,8 @@ public class CourseScheduleServiceImpl extends BaseServiceImpl<Long, CourseSched
 | 
	
		
			
				|  |  |                              errInfo.append("安排的课程存在学生冲突");
 | 
	
		
			
				|  |  |                              throw new BizException(errInfo.toString());
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  | -						System.out.println(j==repeatTimes);
 | 
	
		
			
				|  |  | +						System.out.print(j==repeatTimes);
 | 
	
		
			
				|  |  | +                        System.out.println(" "+j);
 | 
	
		
			
				|  |  |                          if(j==repeatTimes){
 | 
	
		
			
				|  |  |                              repeatTimes+=1;
 | 
	
		
			
				|  |  |                          }
 |