likang 2 yıl önce
ebeveyn
işleme
d8e89b9996

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

@@ -122,9 +122,11 @@ class TagHistory extends CatchController
                 ['lable', '=', $value['lable']]
                 ['lable', '=', $value['lable']]
             ];
             ];
 
 
-             $sss = $this->tagHistoryModel->where($onewhere)->
+            $value['addTime'] = $this->tagHistoryModel->where($onewhere)->
                where($towwhere)->max('addTime');
                where($towwhere)->max('addTime');
-            var_dump($sss);
+             $ss=  $this->tagHistoryModel->where($onewhere)->
+               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'];