4.1: 分组去重,多字段构成key, 返回 Map<String, List<Talk>> 类型数据 2 Map<String, List<Talk>> talkMap = talkList.stream().collect(Collectors.groupingBy(talk -> talk.getGradeId() + "" + talk.getSubjectId() + "" 3 + talk.getUnitId()));View Code
2021-11-24 07:26:11
4.1: 分组去重,多字段构成key, 返回 Map<String, List<Talk>> 类型数据 2 Map<String, List<Talk>> talkMap = talkList.stream().collect(Collectors.groupingBy(talk -> talk.getGradeId() + "" + talk.getSubjectId() + "" 3 + talk.getUnitId()));View Code