List<Student> list = this.list(queryWrapper);
Map<Integer,List<Student>>map=list.stream().collect(
Collectors.groupingBy(Student::getId));
steam流对list集合分组
最新推荐文章于 2024-06-21 17:40:28 发布
List<Student> list = this.list(queryWrapper);
Map<Integer,List<Student>>map=list.stream().collect(
Collectors.groupingBy(Student::getId));