From 683740cde53911b3abcae057b53bf2854653daab Mon Sep 17 00:00:00 2001 From: weizong song Date: Thu, 1 Jul 2021 14:10:00 +0800 Subject: [PATCH] up --- app/Http/Controllers/Admin/StatisticsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Admin/StatisticsController.php b/app/Http/Controllers/Admin/StatisticsController.php index a33b43c..ba9a67e 100755 --- a/app/Http/Controllers/Admin/StatisticsController.php +++ b/app/Http/Controllers/Admin/StatisticsController.php @@ -151,7 +151,7 @@ class StatisticsController extends CommonController { DB::enableQueryLog(); //采用指定时间段订单号 - $model = OrderItems::whereNotNull("service_date")->where(DB::raw("UNIX_TIMESTAMP(`service_date`) >= ".strtotime("2021-06-01"))); + $model = OrderItems::whereNotNull("service_date")->whereRaw("UNIX_TIMESTAMP(`service_date`) >= ".strtotime("2021-06-01")); //采用指定订单号结束 if ($request->last_id) {