博主首页

根据属性去重

        subProjectLinkPOS=subProjectLinkPOS.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(SubProjectLinkPO::getJlxmbCode))), ArrayList::new));

 

posted @ 2022-01-24 17:32  笑~笑  阅读(33)  评论(0)    收藏  举报