将SocinsReviewContentView按照reviewId分组
Map<Long,List>collect=reviewContentViews.stream().collect(Collectors.groupingBy(SocinsReviewContentView::getReviewId));
使用流分组
最新推荐文章于 2023-01-03 23:52:51 发布
将SocinsReviewContentView按照reviewId分组
Map<Long,List>collect=reviewContentViews.stream().collect(Collectors.groupingBy(SocinsReviewContentView::getReviewId));