likang 2 年之前
父节点
当前提交
a913c0a2c7
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      catch/tag_history/controller/TagHistory.php

+ 3 - 3
catch/tag_history/controller/TagHistory.php

@@ -128,9 +128,9 @@ class TagHistory extends CatchController
             
             $list[$key]['addTime'] = $value['addTime'];
             
-            $value['ave_rssi']= $this->tagHistoryModel->where($towwhere)->where($onewhere)->avg('rssi');
+            $value['ave_rssi']= $this->tagHistoryModel->where($towwhere)->avg('rssi');
             $list[$key]['ave_rssi'] =  $value['ave_rssi'];
-            var_dump($onewhere);
+            
 
             $value['num']=$this->tagHistoryModel->where($onewhere)->where($towwhere)->count();
             $list[$key]['num'] = $value['num'];
@@ -153,7 +153,7 @@ class TagHistory extends CatchController
             if($shifouRole)
             {
                 $time = $this->tagHistoryModel->where($wh)->max('addTime');
-               
+                
                 if(($value['addTime']-$time)<=90)
                 {
                     $list[$key]['status']=1;