自己常用的java8 用法
集合对象里面取出每个对象的某个值
System.out.println(employeeInfoList.stream().map(employeeInfo::getName).collect(Collectors.toList()));
取出多个值。便于简洁返回
List<Map> resultNew =new ArrayList<>();
result.stream().forEach(s-> {
Map<String,String> map =new HashMap<>();
map.put("id",s.getId());
map.put("name",s.getName());
map.put("employeeNo",s.getEmployeeNo());
resultNew.add(map);
});