ArrayList<OmsCollectAppVo> distinctLiost =
resultList.stream()
.collect(Collectors
.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparingLong(OmsCollectAppVo::getSortId))), ArrayList::new)
);
根据集合对象中某元素去重
最新推荐文章于 2023-02-28 18:27:08 发布