feat: 修改产品库存创建方法

This commit is contained in:
mkm 2024-06-17 18:17:19 +08:00
parent 029df0e33d
commit 30a6a404c6

View File

@ -125,7 +125,7 @@ class StoreStorageSend implements Consumer
'sales' => 0, 'sales' => 0,
'stock' => 0, 'stock' => 0,
]; ];
StoreBranchProduct::create($product); StoreBranchProductExchange::create($product);
if ($product_arr['stock'] > 0) { if ($product_arr['stock'] > 0) {
$this->storage($find, $store_id, $admin_id, $product_arr); $this->storage($find, $store_id, $admin_id, $product_arr);
} }