从对象集合中过滤并拼接需要的串
String skus = productList.stream()
.filter(product -> !StringUtil.isBlank(product.getGoodsCode()))
.map(ScsTopProductStock::getGoodsCode)
.collect(Collectors.joining(","));
从对象集合中过滤并拼接需要的串
String skus = productList.stream()
.filter(product -> !StringUtil.isBlank(product.getGoodsCode()))
.map(ScsTopProductStock::getGoodsCode)
.collect(Collectors.joining(","));