From e2eb40185f403b6f75e37bb900259d9d6b745ebf 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, 9 Aug 2024 14:46:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=B2=9C=E8=8A=B12.0-=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=B5=8B=E8=AF=95bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/CheckPrice.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Console/Commands/CheckPrice.php b/app/Console/Commands/CheckPrice.php index 726619f..aa05521 100644 --- a/app/Console/Commands/CheckPrice.php +++ b/app/Console/Commands/CheckPrice.php @@ -3,7 +3,6 @@ namespace App\Console\Commands; use App\Http\Service\MessageService; -use App\Models\GoodsSku; use Carbon\Carbon; use Illuminate\Console\Command; use Illuminate\Support\Facades\DB; @@ -51,7 +50,7 @@ class CheckPrice extends Command , 'b.cost','a.created_at','a.business_order_id') ->leftJoin('goods_skus as b', 'a.external_sku_id', '=', 'b.external_sku_id') ->whereBetween('a.created_at', [$startTime,$endTime]) - ->havingRaw('goods_price < cost') + ->whereRaw('a.goods_price / 100 < cost') ->get(); if($results->isNotEmpty()){ Log::info($startTime.'异常订单',$results->toArray());