|
@@ -202,7 +202,9 @@ public class KxsShopGoodsServiceImpl extends ServiceImpl<KxsShopGoodsMapper, Kxs
|
|
|
//商品图片
|
|
//商品图片
|
|
|
if(!picList.isEmpty()){
|
|
if(!picList.isEmpty()){
|
|
|
kxsShopGoodsPicService.remove(Wrappers.<KxsShopGoodsPic>lambdaQuery().eq(KxsShopGoodsPic::getGoodsId, goods.getId()));
|
|
kxsShopGoodsPicService.remove(Wrappers.<KxsShopGoodsPic>lambdaQuery().eq(KxsShopGoodsPic::getGoodsId, goods.getId()));
|
|
|
- kxsShopGoodsPicService.saveBatch(picList);
|
|
|
|
|
|
|
+ for (KxsShopGoodsPic shopGoodsPic : picList) {
|
|
|
|
|
+ kxsShopGoodsPicService.save(shopGoodsPic);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
//获取sku列表
|
|
//获取sku列表
|
|
|
FieldData fieldData = fieldDataMap.get("NormJson");
|
|
FieldData fieldData = fieldDataMap.get("NormJson");
|