|
@@ -374,7 +374,7 @@ class Lampcontrol extends Base_Controller {
|
|
|
$countWheret1 = implode(' AND ', $countWhere);
|
|
|
$data['total_data']['install_num'] = $this->Lamp_model->get_count($countWheret1);
|
|
|
$countWheret = $countWhere;
|
|
|
- $countWheret[] = 'status = 1';
|
|
|
+ $countWheret[] = 'lighteness > 0';
|
|
|
$countWheret[] = 'netstatus = 1';
|
|
|
$countWheret1 = implode(' AND ', $countWheret);
|
|
|
$data['total_data']['light_num'] = $this->Lamp_model->get_count($countWheret1);
|