|
@@ -75,7 +75,7 @@ class Home extends Base_Controller {
|
|
|
|
|
|
$data['day_new_count'] = $this->Lamp_model->get_count($where);
|
|
|
|
|
|
- $where = ['netstatus'=>1,'status'=>1];
|
|
|
+ $where = ['netstatus'=>1,'lighteness >'=>0];
|
|
|
if (!empty($projectIdArr)) $where['projectid'] = $projectIdArr;
|
|
|
$data['light_up_count'] = $this->Lamp_model->get_count($where);
|
|
|
|
|
@@ -150,10 +150,10 @@ class Home extends Base_Controller {
|
|
|
$total = $this->Lamp_model->get_list_by_multi_join($where, 'count(*) as total',NULL, NULL, $join, NULL, NUll, 'L', true);
|
|
|
$data['online_count'] = $total['total'];
|
|
|
|
|
|
- $where['L.status ='] = 1;
|
|
|
+ $where['L.lighteness >'] = 1;
|
|
|
$total = $this->Lamp_model->get_list_by_multi_join($where, 'count(*) as total',NULL, NULL, $join, NULL, NUll, 'L', true);
|
|
|
$data['light_up_count'] = $total['total'];
|
|
|
- unset($where['L.status']);
|
|
|
+ unset($where['L.lighteness >']);
|
|
|
|
|
|
// $where['L.devstatus !='] = 0;
|
|
|
$where1 = [];
|