!159 优化修改sku时,如存在sku则不新增
Merge pull request !159 from OceansDeep/feature/pg
This commit is contained in:
commit
db75aa1cab
@ -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