|  | @@ -26,9 +26,6 @@ import org.springframework.transaction.annotation.Transactional;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import java.math.BigDecimal;
 | 
	
		
			
				|  |  |  import java.util.*;
 | 
	
		
			
				|  |  | -import java.util.concurrent.ConcurrentHashMap;
 | 
	
		
			
				|  |  | -import java.util.function.Function;
 | 
	
		
			
				|  |  | -import java.util.function.Predicate;
 | 
	
		
			
				|  |  |  import java.util.stream.Collectors;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  @Service
 | 
	
	
		
			
				|  | @@ -363,12 +360,7 @@ public class TeacherServiceImpl extends BaseServiceImpl<Integer, Teacher>  imple
 | 
	
		
			
				|  |  |  		//获取当前管理人员所在分部,所有老师,以及没有乐团的学生
 | 
	
		
			
				|  |  |  		List<BasicUserDto> userDtos = teacherDao.queryEducationIpa(userId, search);
 | 
	
		
			
				|  |  |  		userDtos.addAll(basicUserDtos);
 | 
	
		
			
				|  |  | -		userDtos.parallelStream().filter(distinctByKey(BasicUserDto::getUserId)).forEach(System.out::println);
 | 
	
		
			
				|  |  | -		return userDtos;
 | 
	
		
			
				|  |  | -	}
 | 
	
		
			
				|  |  | -	public static <T> Predicate<T> distinctByKey(Function<? super T, ?> keyExtractor) {
 | 
	
		
			
				|  |  | -		Set<Object> seen = ConcurrentHashMap.newKeySet();
 | 
	
		
			
				|  |  | -		return t -> seen.add(keyExtractor.apply(t));
 | 
	
		
			
				|  |  | +		return userDtos.stream().distinct().collect(Collectors.toList());
 | 
	
		
			
				|  |  |  	}
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  	@Override
 |