java list 通过对象中某一参数去重,返回一个新list
List<ClassWhiteNameImportExcelListDto> list = list1.stream()
.collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(ClassWhiteNameImportExcelListDto::getMobile))), ArrayList::new));```