|
@@ -122,9 +122,9 @@ class TagHistory extends CatchController
|
|
|
['lable', '=', $value['lable']]
|
|
|
];
|
|
|
|
|
|
- $value['addTime'] = $this->tagHistoryModel->where($onewhere)->
|
|
|
+ $sss = $this->tagHistoryModel->where($onewhere)->
|
|
|
where($towwhere)->max('addTime');
|
|
|
- var_dump($value['addTime']);
|
|
|
+ var_dump($sss);
|
|
|
$list[$key]['addTime'] = $value['addTime'];
|
|
|
$value['ave_rssi']= $this->tagHistoryModel->where($towwhere)->where($onewhere)->avg('rssi');
|
|
|
$list[$key]['ave_rssi'] = $value['ave_rssi'];
|