From f5718b4062febc22db1c03eb0a97c952b0f8bbe6 Mon Sep 17 00:00:00 2001 From: paulGao Date: Wed, 18 May 2022 22:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BF=AE=E6=94=B9sku?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=A6=82=E5=AD=98=E5=9C=A8sku=E5=88=99?= =?UTF-8?q?=E4=B8=8D=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/lili/modules/goods/serviceimpl/GoodsSkuServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsSkuServiceImpl.java b/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsSkuServiceImpl.java index 53211c3d..00cbe0b0 100644 --- a/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsSkuServiceImpl.java +++ b/framework/src/main/java/cn/lili/modules/goods/serviceimpl/GoodsSkuServiceImpl.java @@ -179,7 +179,7 @@ public class GoodsSkuServiceImpl extends ServiceImpl i this.clearCache(sku.getId()); } } - this.updateBatchById(newSkuList); + this.saveOrUpdateBatch(newSkuList); } this.updateStock(newSkuList); if (GoodsAuthEnum.PASS.name().equals(goods.getAuthFlag()) && !newSkuList.isEmpty()) {