|
@@ -151,9 +151,9 @@ class CarIllegalDownController extends BaseController
|
|
|
$sqlStr = /** @lang text */
|
|
|
"select count(case when warn_start_time >= '{$startTime}'
|
|
|
and warn_start_time < '{$endTime}' then car_num end)con from (
|
|
|
- select car_num, warn_start_time from down_car_speed_warn where statis_date = '2023-11-08'
|
|
|
+ select car_num, warn_start_time from down_car_speed_warn where statis_date = '".date("Y-m-d", strtotime($startTime))."'
|
|
|
union all
|
|
|
- select car_num, warn_start_time from down_car_run_red_light_warn where statis_date = '2023-11-08'
|
|
|
+ select car_num, warn_start_time from down_car_run_red_light_warn where statis_date = '".date("Y-m-d", strtotime($startTime))."'
|
|
|
) t";
|
|
|
|
|
|
return $this->executeSql($sqlStr, 4, $mineCode);
|