List<GdJbxxCommon> gdJbxxCommons = gdJbxxMapper.selectGdJbxxCommonListByStatus(status, userId);
gdJbxxCommons = gdJbxxCommons.stream().collect(
Collectors.collectingAndThen(
Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(GdJbxxCommon::getId))), ArrayList::new));
Java stream去重
最新推荐文章于 2024-07-12 15:51:39 发布