excel导入铺货。修改接口

This commit is contained in:
sjeam 2025-04-07 14:01:01 +08:00
parent 08fa715e73
commit c26790ebbe
2 changed files with 2 additions and 1 deletions

View File

@ -534,7 +534,7 @@ class LocalController extends BaseAdminController
$system_store_id = SystemStore::where('name', $row[1])->value('id'); $system_store_id = SystemStore::where('name', $row[1])->value('id');
} }
$product = StoreBranchProduct::where('product_id', $row[0])->where('store_id', $system_store_id)->field('id,product_id,stock')->findOrEmpty(); $product = StoreBranchProduct::where('product_id', $row[0])->where('store_id', $system_store_id)->field('id,product_id,stock')->findOrEmpty();
if ($row[10] == $product->stock && $product->stock) { if ($row[10] == $product->stock && intval($product->stock) > 0) {
$arr = [ $arr = [
'nums' => $row[10], 'nums' => $row[10],
'product_id' => $product->product_id, 'product_id' => $product->product_id,

1
public/output.text Normal file

File diff suppressed because one or more lines are too long