//去重List<BudgetSchemeInfo> templates = this.list().stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(BudgetSchemeInfo::getDepId))), ArrayList::new));