//取出id并去重生成新listList<Long> orderDoctorIds = doctorListVos.stream().map(DoctorListVo::getId).collect(Collectors.toList()).stream().distinct().collect(Collectors.toList());
//使⽤stream流把list1和list2根据属性userId合并⼀个list集合List<Map<String, Object>> list = list1.stream().map(m ->{list2.stream().filter(m2-> Objects.equals(m.get("userId"),m2.get("userId"))).forEach(m2->{m.put("gender",m2.get("gender"));m.put("age",m2.get("age"));});return m;}).collect(Collectors.toList());
