List<Long> projectIds = projectRestDTOS.stream().map(ProjectRestDTO::getProjectId).collect( Collectors.toList());
java stream 处理
原文:https://www.cnblogs.com/aspirant/p/12490252.html