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