1.使用stream的方式:
List userIds = appPermissionVoList.stream().map(appPermissionVo->appPermissionVo.getUserId()).collect(Collectors.toList());
2.使用guava:
List usrIds = Lists.transform(appPermissionVoList,appPerm->appPerm.getUserId())
1.使用stream的方式:
List userIds = appPermissionVoList.stream().map(appPermissionVo->appPermissionVo.getUserId()).collect(Collectors.toList());
2.使用guava:
List usrIds = Lists.transform(appPermissionVoList,appPerm->appPerm.getUserId())