excel导入铺货。修改接口
This commit is contained in:
parent
08fa715e73
commit
c26790ebbe
@ -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
1
public/output.text
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user