优化修改sku时,如存在sku则不新增
This commit is contained in:
parent
31fb55635e
commit
f5718b4062
@ -179,7 +179,7 @@ public class GoodsSkuServiceImpl extends ServiceImpl<GoodsSkuMapper, GoodsSku> i
|
||||
this.clearCache(sku.getId());
|
||||
}
|
||||
}
|
||||
this.updateBatchById(newSkuList);
|
||||
this.saveOrUpdateBatch(newSkuList);
|
||||
}
|
||||
this.updateStock(newSkuList);
|
||||
if (GoodsAuthEnum.PASS.name().equals(goods.getAuthFlag()) && !newSkuList.isEmpty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user