From 82cf33dfcccf015e06a495df400173fbec8cd8da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Fri, 16 Sep 2022 10:50:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#10000=20=E7=9B=98=E7=82=B9=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Imports/InventoryImport.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Imports/InventoryImport.php b/app/Imports/InventoryImport.php index a9ddbbd..ea4fa0f 100644 --- a/app/Imports/InventoryImport.php +++ b/app/Imports/InventoryImport.php @@ -2,7 +2,6 @@ namespace App\Imports; -use App\Events\StockUpdateEvent; use App\Models\DailyStockRecord; use App\Models\Goods; use App\Models\GoodsSku; @@ -46,7 +45,7 @@ class InventoryImport implements ToCollection, SkipsEmptyRows $goodsSku = GoodsSku::query() ->where('goods_id', $hasGoods[$row[0]]['id']) ->where('sku_code', $row[4]) - ->first(['id']); + ->first(); if (empty($goodsSku)) { Log::warning(json_encode($row, 256) . '=====库存导入未找到'); continue;