//根据属性去重public <T> Predicate<T> distinctByKey(Function<? super T, ?> keyExtractor) {Map<Object, Boolean> seen = new ConcurrentHashMap<>();return t -> seen.putIfAbsent(keyExtractor.apply(t), Boolean.TRUE) == null;}list.stream().filter(distinctByKey(vo -> Stream.of(vo.getOrgName(),vo.getUserName()).toArray())).collect(Collectors.toList());