// 方法1。通过stream map转换 List<String> idcards= users.stream().map(User::getIdcard).collect(Collectors.toList())