标签:blank tor 集合 join string col IV cto toc
从对象集合中过滤并拼接需要的串
String skus = productList.stream()
.filter(product -> !StringUtil.isBlank(product.getGoodsCode()))
.map(ScsTopProductStock::getGoodsCode)
.collect(Collectors.joining(","));
标签:blank tor 集合 join string col IV cto toc
原文地址:https://www.cnblogs.com/durp/p/9141097.html