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