|  | @@ -12,6 +12,7 @@ import com.ym.mec.biz.dal.entity.Teacher;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.TeacherLeaveRecord;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.TeacherLeaveRecord.CoursesScheduleHistory;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.enums.AuditStatusEnum;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.enums.GroupType;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.enums.MessageTypeEnum;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.CourseScheduleService;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.service.SysMessageService;
 | 
	
	
		
			
				|  | @@ -22,6 +23,7 @@ import com.ym.mec.common.service.impl.BaseServiceImpl;
 | 
	
		
			
				|  |  |  import com.ym.mec.thirdparty.message.MessageSenderPluginContext;
 | 
	
		
			
				|  |  |  import com.ym.mec.util.date.DateUtil;
 | 
	
		
			
				|  |  |  import com.ym.mec.util.json.JsonUtil;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
	
		
			
				|  | @@ -80,7 +82,9 @@ public class TeacherLeaveRecordServiceImpl extends BaseServiceImpl<Long, Teacher
 | 
	
		
			
				|  |  |  				List<CourseSchedule> list = new ArrayList<CourseSchedule>();
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  				for (CoursesScheduleHistory his : coursesScheduleHistoryList) {
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | +					if (his.getBefore().getGroupType() == GroupType.MUSIC) {
 | 
	
		
			
				|  |  | +						continue;
 | 
	
		
			
				|  |  | +					}
 | 
	
		
			
				|  |  |  					if(!teacherLeaveRecord.getEndTime().before(his.getAfter().getStartClassTime())
 | 
	
		
			
				|  |  |  							&&!teacherLeaveRecord.getStartTime().after(his.getAfter().getEndClassTime())){
 | 
	
		
			
				|  |  |  						throw new BizException("课程时间与老师请假时间存在冲突");
 |