List<EmEventConfigPointExcelDto> listNew = list.stream() .collect(Collectors.collectingAndThen( Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing((o) -> o.getTaskType() + ";" + o.getArea() + ";" + o.getSceneName() + ";" + o.getPointPosition() + ";" + o.getLocation()))), ArrayList::new));
你好世界!