|  | @@ -2,7 +2,6 @@ package com.keao.edu.user.service.impl;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import com.alibaba.fastjson.JSON;
 | 
	
		
			
				|  |  | -import com.alibaba.fastjson.JSONArray;
 | 
	
		
			
				|  |  |  import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  |  import com.keao.edu.common.dal.BaseDAO;
 | 
	
		
			
				|  |  |  import com.keao.edu.common.enums.YesOrNoEnum;
 | 
	
	
		
			
				|  | @@ -23,14 +22,13 @@ import com.keao.edu.user.page.ExamRoomQueryInfo;
 | 
	
		
			
				|  |  |  import com.keao.edu.user.service.ExamRoomService;
 | 
	
		
			
				|  |  |  import com.keao.edu.user.service.OrganizationService;
 | 
	
		
			
				|  |  |  import com.keao.edu.util.collection.MapUtil;
 | 
	
		
			
				|  |  | +import com.keao.edu.util.date.DateUtil;
 | 
	
		
			
				|  |  |  import org.apache.commons.beanutils.BeanUtils;
 | 
	
		
			
				|  |  |  import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  | -import org.apache.commons.lang3.time.DateUtils;
 | 
	
		
			
				|  |  |  import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  |  import org.springframework.stereotype.Service;
 | 
	
		
			
				|  |  |  import org.springframework.util.CollectionUtils;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -import java.lang.reflect.InvocationTargetException;
 | 
	
		
			
				|  |  |  import java.util.*;
 | 
	
		
			
				|  |  |  import java.util.stream.Collectors;
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -184,11 +182,15 @@ public class ExamRoomServiceImpl extends BaseServiceImpl<Long, ExamRoom> impleme
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Override
 | 
	
		
			
				|  |  |  	public void checkRoomTeachers(List<ExamRoom> examRooms) {
 | 
	
		
			
				|  |  | -		List<String> days=new ArrayList<>();
 | 
	
		
			
				|  |  | +		Set<String> days=new HashSet<>();
 | 
	
		
			
				|  |  |  		for (ExamRoom examRoom : examRooms) {
 | 
	
		
			
				|  |  |  			if(Objects.nonNull(examRoom.getExamStartTime())){
 | 
	
		
			
				|  |  | -//				days.add(DateUtils)
 | 
	
		
			
				|  |  | +				days.add(DateUtil.dateToString(examRoom.getExamStartTime(), "yyyy-MM-dd"));
 | 
	
		
			
				|  |  | +			}
 | 
	
		
			
				|  |  | +			if(Objects.nonNull(examRoom.getExamEndTime())){
 | 
	
		
			
				|  |  | +				days.add(DateUtil.dateToString(examRoom.getExamEndTime(), "yyyy-MM-dd"));
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  }
 |