Authored by chenjian

bugfix

@@ -781,9 +781,11 @@ public class ProductServiceImpl implements ProductService{ @@ -781,9 +781,11 @@ public class ProductServiceImpl implements ProductService{
781 781
782 Product product = productMapper.selectByPrimaryKey(skupDo.getProductId()); 782 Product product = productMapper.selectByPrimaryKey(skupDo.getProductId());
783 783
784 - Goods goods = goodsMapper.selectByPrimaryKey(skupDo.getGoodsId()); 784 + Storage storage = storageMapper.selectByPrimaryKey(skupDo.getStorageId());
785 785
786 - List<GoodsImages> goodsImages = goodsImagesMapper.selectByGoodsId(skupDo.getGoodsId()); 786 + Goods goods = goodsMapper.selectByPrimaryKey(storage.getGoodsId());
  787 +
  788 + List<GoodsImages> goodsImages = goodsImagesMapper.selectByGoodsId(goods.getId());
787 789
788 List<String> imageList = CollectionUtils.isEmpty(goodsImages) ? Lists.newArrayList() 790 List<String> imageList = CollectionUtils.isEmpty(goodsImages) ? Lists.newArrayList()
789 : goodsImages.stream().map(GoodsImages::getImageUrl).filter(StringUtils::isNotBlank).collect(Collectors.toList()); 791 : goodsImages.stream().map(GoodsImages::getImageUrl).filter(StringUtils::isNotBlank).collect(Collectors.toList());