likang 2 years ago
parent
commit
d8e89b9996
1 changed files with 4 additions and 2 deletions
  1. 4 2
      catch/tag_history/controller/TagHistory.php

+ 4 - 2
catch/tag_history/controller/TagHistory.php

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