|
@@ -92,7 +92,7 @@ class CarIllegalDownController extends BaseController
|
|
// 今日超速统计
|
|
// 今日超速统计
|
|
public function getCarIllegalCount($stateDate, $mineCode='zaoquan') {
|
|
public function getCarIllegalCount($stateDate, $mineCode='zaoquan') {
|
|
|
|
|
|
- $sqlStr = "select count(car_num) con from `down_car_speed_warn` where state_date = '".date("Y-m-d", strtotime($stateDate))."'";
|
|
|
|
|
|
+ $sqlStr = "select count(car_num) con from `down_car_speed_warn` where statis_date = '".date("Y-m-d", strtotime($stateDate))."'";
|
|
|
|
|
|
return $this->executeSql($sqlStr, 2, $mineCode);
|
|
return $this->executeSql($sqlStr, 2, $mineCode);
|
|
|
|
|
|
@@ -107,7 +107,7 @@ class CarIllegalDownController extends BaseController
|
|
$sqlStr = 'SELECT b.numberplate, b.car_type, b.department, a.warn_start_time, a.warn_stop_time, a.act_val, a.warn_val ';
|
|
$sqlStr = 'SELECT b.numberplate, b.car_type, b.department, a.warn_start_time, a.warn_stop_time, a.act_val, a.warn_val ';
|
|
$sqlStr .= 'FROM down_car_speed_warn a ';
|
|
$sqlStr .= 'FROM down_car_speed_warn a ';
|
|
$sqlStr .= 'join down_car_base_info b on a.car_num = b.car_num ';
|
|
$sqlStr .= 'join down_car_base_info b on a.car_num = b.car_num ';
|
|
- $sqlStr .= 'where a.state_date = "'.$startTime.'"';
|
|
|
|
|
|
+ $sqlStr .= 'where a.statis_date = "'.$startTime.'"';
|
|
$sqlStr .= "order by a.warn_start_time desc ";
|
|
$sqlStr .= "order by a.warn_start_time desc ";
|
|
|
|
|
|
$conn = 'etl_'.$mineCode;
|
|
$conn = 'etl_'.$mineCode;
|
|
@@ -134,7 +134,7 @@ class CarIllegalDownController extends BaseController
|
|
$sqlStr = /** @lang text */
|
|
$sqlStr = /** @lang text */
|
|
"select count(case when warn_start_time >= '{$startTime}'
|
|
"select count(case when warn_start_time >= '{$startTime}'
|
|
and warn_start_time < '{$endTime}' then car_num end) con
|
|
and warn_start_time < '{$endTime}' then car_num end) con
|
|
- from down_car_speed_warn where state_date = '".date("Y-m-d", strtotime($startTime))."'";
|
|
|
|
|
|
+ from down_car_speed_warn where statis_date = '".date("Y-m-d", strtotime($startTime))."'";
|
|
|
|
|
|
// return $sqlStr;
|
|
// return $sqlStr;
|
|
|
|
|