list是你获得的类列表,例如List<Place> list = placeService.selectPlaceList(place);
方法一:List<?>
List<Long> placeIdList = list.stream().map(Place::getPlaceId).collect(Collectors.toList());
方法二:Long[]
Long[] placeIdList = list.stream().map(Place::getPlaceId).toArray(Long[]::new);
有待补充