|
@@ -2020,7 +2020,7 @@ class Lampcontrol extends Base_Controller {
|
|
|
}
|
|
|
$list = $temp;
|
|
|
}else{ // 电量
|
|
|
- $sql = 'select daychargeah,daydischarah,updatetime from battery_info_log where lampid = '.$lampId.' and updatetime >= "'.$beginDate.'" and updatetime <= "'.$endDate.'"';
|
|
|
+ $sql = 'select daychargeah,daydischarah,updatetime from realtime_info_log where lampid = '.$lampId.' and updatetime >= "'.$beginDate.'" and updatetime <= "'.$endDate.'"';
|
|
|
$list = $this->db->query($sql)->result_array();
|
|
|
$temp = [];
|
|
|
foreach ($list as $value) {
|