|
@@ -303,7 +303,7 @@ public class ProductServiceImpl implements ProductService{ |
|
@@ -303,7 +303,7 @@ public class ProductServiceImpl implements ProductService{ |
303
|
List<GoodsImages> goodsImages = goodsImagesMapper.selectByGoodsId(goodId);
|
303
|
List<GoodsImages> goodsImages = goodsImagesMapper.selectByGoodsId(goodId);
|
304
|
List<GoodsImageBO> imageList = new ArrayList<>();
|
304
|
List<GoodsImageBO> imageList = new ArrayList<>();
|
305
|
if (!CollectionUtils.isEmpty(goodsImages)) {
|
305
|
if (!CollectionUtils.isEmpty(goodsImages)) {
|
306
|
- List<String> imageUrlList = goodsImages.stream().map(GoodsImages::getImageUrl).filter(StringUtils::isBlank).map(this::buildImageFullUrl).collect(Collectors.toList());
|
306
|
+ List<String> imageUrlList = goodsImages.stream().map(GoodsImages::getImageUrl).filter(StringUtils::isNotBlank).map(this::buildImageFullUrl).collect(Collectors.toList());
|
307
|
imageUrlList.forEach(e -> imageList.add(GoodsImageBO.create(e)));
|
307
|
imageUrlList.forEach(e -> imageList.add(GoodsImageBO.create(e)));
|
308
|
}
|
308
|
}
|
309
|
goodsBO.setImageList(imageList);
|
309
|
goodsBO.setImageList(imageList);
|