This commit is contained in:
shengchanzhe 2023-10-27 21:33:17 +08:00
parent 31b4169b45
commit 64ed1355bc

View File

@ -2352,7 +2352,7 @@ class ProductRepository extends BaseRepository
$stockIn=1;
}
ProductAttrValue::where('mer_id', $merId)
->where('product_id', $params['product_id'])
->where('product_id', $product['product_id'])
->update(['stock'=>$attrValue->stock + $stockIn]);
$data = [
'order_id' => $params['order_id'] ?? 0,