From 9db065691ac63a77195900ac88bc8537fec580df Mon Sep 17 00:00:00 2001 From: weizong song Date: Thu, 1 Jul 2021 14:09:02 +0800 Subject: [PATCH] up --- app/Http/Controllers/Admin/StatisticsController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/StatisticsController.php b/app/Http/Controllers/Admin/StatisticsController.php index f56ccbb..a33b43c 100755 --- a/app/Http/Controllers/Admin/StatisticsController.php +++ b/app/Http/Controllers/Admin/StatisticsController.php @@ -149,6 +149,7 @@ class StatisticsController extends CommonController public function syncOrderItems(Request $request) { + DB::enableQueryLog(); //采用指定时间段订单号 $model = OrderItems::whereNotNull("service_date")->where(DB::raw("UNIX_TIMESTAMP(`service_date`) >= ".strtotime("2021-06-01"))); //采用指定订单号结束 @@ -157,7 +158,7 @@ class StatisticsController extends CommonController $model = $model->where("id", ">", $request->last_id); } $orderItems = $model->with("order")->limit(20)->get(); - dd($orderItems->toArray()); + dd(DB::getQueryLog(),$orderItems->toArray()); if (!$orderItems->count()) { dd("已处理完毕");