流式编程获得对象集合中某个字段的集合
List<String> managementIds = anchorOutNoticeDtoList.parallelStream()
.map(AnchorOutNoticeDto::getManagementId)
.distinct()
.collect(Collectors.toList());
迎风少年
List<String> managementIds = anchorOutNoticeDtoList.parallelStream()
.map(AnchorOutNoticeDto::getManagementId)
.distinct()
.collect(Collectors.toList());