flatMap 多个list/stream汇成一个steam
List managerJobs = managerMap.values().stream().flatMap(Collection::stream).map(DocEmpInfoDO::getJob).collect(toList());
groupBy自定义集合对象!
Map<Long, Set<String>> map = weightsList.stream().collect(groupingBy(Weight::getId, mapping(Weight::getWeight, toSet())));
通过 mapping函数自定义要放入集合中的对象!