1、提取集合单列内容
Map 对象的:
List<String> companyIds = companyIds.stream().map(e->String.valueOf(e.get("id"))).collect(Collectors.toList());
实例对象的:
List<String> companyIds = companyIds.stream().map(CYAreaItemVO::getId).collect(Collectors.toList());
1、提取集合单列内容
Map 对象的:
List<String> companyIds = companyIds.stream().map(e->String.valueOf(e.get("id"))).collect(Collectors.toList());
实例对象的:
List<String> companyIds = companyIds.stream().map(CYAreaItemVO::getId).collect(Collectors.toList());