From d17d96b9cde3e37af6862712b0b78be9fd493de7 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, 29 Aug 2022 09:44:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20#20220829=207=E7=82=B9=E5=BA=93?= =?UTF-8?q?=E5=AD=98=E7=9B=98=E7=82=B9=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/Inventory.php | 1 - 1 file changed, 1 deletion(-) diff --git a/app/Console/Commands/Inventory.php b/app/Console/Commands/Inventory.php index 450b0dc..1ef6060 100644 --- a/app/Console/Commands/Inventory.php +++ b/app/Console/Commands/Inventory.php @@ -60,7 +60,6 @@ class Inventory extends Command 'day' => $date, ]; GoodsSku::where('id', $sku->id)->update([ - 'stock' => $sku->stock + $sku->two_days_ago_num + $sku->yesterday_num, 'yesterday_num' => $sku->stock, 'two_days_ago_num' => $sku->two_days_ago_num + $sku->yesterday_num, ]);