- 连接集合中每个对象的某个属性
String resourcesNum = term.getResources().stream()
.map(ResourceSnapshotModel::getResourceNumber)
.collect(Collectors.joining(","));
String resourcesNum = term.getResources().stream()
.map(ResourceSnapshotModel::getResourceNumber)
.collect(Collectors.joining(","));