wzh il y a 5 ans
Parent
commit
249120590f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      api/application/controllers/Lampcontrol.php

+ 1 - 1
api/application/controllers/Lampcontrol.php

@@ -391,7 +391,7 @@ class Lampcontrol extends Base_Controller {
         $res = $this->Lamp_model->get_list_by_multi_join($filter, 'count(*) total',$limit, $offset, $join, "L.number ASC,N.networkname ASC", NUll, 'L',true);
         $result = !empty($pid_arr) ? $this->Lamp_model->get_total('L.projectid', $pid_arr, 'L.id') : array();
         $result = $this->Lamp_model->get_count(['projectid'=>$pid_arr]);
-        $data['total'] = ceil($res['total']/$limit);
+        $data['total'] = $res['total'];
         $data['count'] = $result;
         $data['fault'] = $res['total'];
         exit(json_result('0000', $this->response['0000'], $data));