鲜花2.0-接口测试bug修复

This commit is contained in:
杨建炊 2024-08-09 14:46:37 +08:00
parent 6b20a06619
commit e2eb40185f

View File

@ -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());