将SocinsReviewContentView按照reviewId分组
Map<Long,List>collect=reviewContentViews.stream().collect(Collectors.groupingBy(SocinsReviewContentView::getReviewId));
使用流分组
最新推荐文章于 2023-07-25 11:54:15 发布
将SocinsReviewContentView按照reviewId分组
Map<Long,List>collect=reviewContentViews.stream().collect(Collectors.groupingBy(SocinsReviewContentView::getReviewId));