|
@@ -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;
|