From 9c398e154fbbabc15b4e6a9445f7018b0b5e2f39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E4=B8=96=E7=95=8C?= <642747453@qq.com> Date: Mon, 30 Oct 2023 14:40:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#10000=20=E4=B8=8A=E6=96=B0=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E5=90=8C=E6=AD=A5=E6=88=90=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Imports/NewSetImport.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Imports/NewSetImport.php b/app/Imports/NewSetImport.php index 4409468..0320a2d 100644 --- a/app/Imports/NewSetImport.php +++ b/app/Imports/NewSetImport.php @@ -2,6 +2,7 @@ namespace App\Imports; +use App\Jobs\SyncCostToMiaoXuan; use App\Models\DailyStockRecord; use App\Models\GoodsSku; use App\Models\TodayPrice; @@ -50,6 +51,7 @@ class NewSetImport implements ToArray, SkipsEmptyRows 'stock' => $row[2] + $goodsSku['stock'], ]); } + SyncCostToMiaoXuan::dispatch($row[0], $row[3]); $updateIds[] = $goodsSku['id']; // 今日到货 $record = DailyStockRecord::query()->where('sku_id', $goodsSku['id'])->where('day', $day)->first(['id', 'arrived_today_num']);