stream流取ids集合

List ids = sysUserRoleList.stream().map(SysUserRole::getRoleId).collect(Collectors.toList());

你可能感兴趣的:(stream流取ids集合)