|
@@ -692,7 +692,8 @@ class Map extends Base_Controller{
|
|
|
if (!empty($arr['num'])) {
|
|
|
$online_arr = $this->Lamp_model->get_count(['projectid'=>$project_id,'netStatus'=>1]);
|
|
|
$lighting_arr = $this->Lamp_model->getCountByFilter($role, 0, $project_id, $userid, array('L.status'=>1));
|
|
|
- $failure = $this->Lamp_model->get_fault_count(array('L.projectid'=>$project_id,'L.isfaulted'=>1), $role, 0, $userid);
|
|
|
+ // $failure = $this->Lamp_model->get_fault_count(array('L.projectid'=>$project_id,'L.isfaulted'=>1), $role, 0, $userid);
|
|
|
+ $failure = 0;
|
|
|
|
|
|
$data['online_rate'] = round($online_arr['num']/$arr['num']*100, 2);
|
|
|
$data['lighting_rate'] = round($lighting_arr['num']/$arr['num']*100, 2);
|