|
@@ -188,8 +188,8 @@ public class GoodsServiceImpl implements GoodsService {
|
|
galleryEntity.setGoodsId(id);
|
|
galleryEntity.setGoodsId(id);
|
|
goodsGalleryDao.save(galleryEntity);
|
|
goodsGalleryDao.save(galleryEntity);
|
|
}
|
|
}
|
|
- }else if(ObjectUtils.isEmpty(goods.getGoodsImgList()) && !ObjectUtils.isEmpty(goods.getListPicUrl())){
|
|
|
|
- String[] images = goods.getListPicUrl().split("#\\$#");
|
|
|
|
|
|
+ }else if(ObjectUtils.isEmpty(goods.getGoodsImgList()) && !ObjectUtils.isEmpty(goods.getPrimaryPicUrl())){
|
|
|
|
+ String[] images = goods.getPrimaryPicUrl().split("#\\$#");
|
|
for (int i = 0; i < images.length; i++) {
|
|
for (int i = 0; i < images.length; i++) {
|
|
GoodsGalleryEntity galleryEntity = new GoodsGalleryEntity();
|
|
GoodsGalleryEntity galleryEntity = new GoodsGalleryEntity();
|
|
galleryEntity.setGoodsId(goods.getId());
|
|
galleryEntity.setGoodsId(goods.getId());
|