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;