Browse Source

统计日期方法调整

q 1 year ago
parent
commit
9fad231349

+ 1 - 1
Modules/OpcData/Http/Controllers/Api/CarIllegalDownController.php

@@ -92,7 +92,7 @@ class CarIllegalDownController extends BaseController
     // 今日超速统计
     // 今日超速统计
     public function getCarIllegalCount($stateDate, $mineCode='zaoquan') {
     public function getCarIllegalCount($stateDate, $mineCode='zaoquan') {
 
 
-        $sqlStr = "select state_date, count(car_num) con from down_car_speed_warn where state_date = '".date("Y-m-d", strtotime($stateDate))."' order by state_date desc";
+        $sqlStr = "select state_date, count(car_num) con from `down_car_speed_warn` where state_date = '".date("Y-m-d", strtotime($stateDate))."' order by state_date desc";
 
 
         return $this->executeSql($sqlStr, 2, $mineCode);
         return $this->executeSql($sqlStr, 2, $mineCode);