根据某一字段List去重
List
.collect(Collectors
.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(BomDemandProductVO::getId))), ArrayList::new));
List
.collect(Collectors
.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(BomDemandProductVO::getId))), ArrayList::new));