浏览代码

no message

wzh 5 年之前
父节点
当前提交
e4f9602394
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      api/application/controllers/Home.php

+ 3 - 3
api/application/controllers/Home.php

@@ -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 = [];