Browse Source

商品信息同步

mac 2 years ago
parent
commit
23890e4b10

+ 3 - 1
kxs-transfer/src/main/java/com/kxs/transfer/api/service/product/impl/KxsShopGoodsServiceImpl.java

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