From fef0f10ade7388c0cb92538322716d9448733216 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=BB=BA=E7=82=8A?= <924182103@qq.com> Date: Fri, 20 Dec 2024 15:17:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=AE=A1=E6=A0=B8=E5=92=8C?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=B7=B2=E8=AF=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/CheckSkuQualityPeriod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/CheckSkuQualityPeriod.php b/app/Console/Commands/CheckSkuQualityPeriod.php index 1730285..1726e08 100644 --- a/app/Console/Commands/CheckSkuQualityPeriod.php +++ b/app/Console/Commands/CheckSkuQualityPeriod.php @@ -60,7 +60,7 @@ class CheckSkuQualityPeriod extends Command $updateIds = []; foreach ($purchaseRecords as $v) { // 单独采购单后续总和小于库存表示该sku没有卖完 - $totalPurchaseNum = PurchaseRecords::query()->where('created_at', '>=', $v->created_at) + $totalPurchaseNum = PurchaseRecords::query()->where('created_at', '>', $v->created_at) ->where('external_sku_id', "=", $v->external_sku_id) ->where("status", 1)->sum('num'); if ($totalPurchaseNum < $v->stock) {