|
@@ -442,9 +442,9 @@ class Lampcontrol extends Base_Controller {
|
|
|
// $res = $this->Lamp_model->get_list_by_multi_join($filter, 'count(*) total',$limit, $offset, $join, "L.number ASC", NUll, 'L',true);
|
|
|
// $result = !empty($pid_arr) ? $this->Lamp_model->get_count(['projectid'=>$pid_arr]) : array();
|
|
|
|
|
|
- $result = $this->Lamp_model->get_count(['projectid'=>$pid_arr]);
|
|
|
- $data['total'] = $result;
|
|
|
- $data['count'] = $result;
|
|
|
+ // $result = $this->Lamp_model->get_count(['projectid'=>$pid_arr]);
|
|
|
+ $data['total'] = $data['total_data']['install_num'];
|
|
|
+ $data['count'] = $data['total_data']['install_num'];
|
|
|
// $data['fault'] = $res['total'];
|
|
|
exit(json_result('0000', $this->response['0000'], $data));
|
|
|
}
|