Merge pull request 'fix(StoreProductLogic): 修复了商品价格更新时的错误 store_id 条件' (#195) from dev into main

Reviewed-on: #195
This commit is contained in:
mkm 2024-09-06 14:10:35 +08:00
commit 1617b0aa35

View File

@ -221,7 +221,7 @@ class StoreProductLogic extends BaseLogic
// $dealCate = self::dealChangeCate($params['cate_id']);
//修改
StoreBranchProduct::where('product_id', $params['id'])->update([
StoreBranchProduct::where('product_id', $params['id'])->whereNotIn('store_id',[17,18])->update([
'price' => $params['price'],
'vip_price' => $params['vip_price'],
'cost' => $params['cost'],