Commit 611f9707 authored by zfc's avatar zfc

总页数

parent 47ecb80f
......@@ -100,7 +100,9 @@ class Client extends Basic
$order="id asc";
$data['list']=$table->getAgentUserTb($pageNo, $pageSize,$order,$field, $where);
$data['total']=$table->getUserAgentTotal($where);
$total=$table->getUserAgentTotal($where);
$total2 = intval($total / $pageSize);
$data['total']= $total2==0 ? 1 : $total2;
$data['page']=$pageNo;
return $this->response(200,'成功',$data);
......@@ -145,7 +147,9 @@ class Client extends Basic
['u_users u','u.id=f.user_id','left'],];
$order="id desc";
$data['list']=$table->getSearch($pageNo, $pageSize,$order,$field,$join, $where,$group);
$data['total']=$table->getUserAgentTotal($where,$join);
$total=$table->getUserAgentTotal($where,$join);
$total2 = intval($total / $pageSize);
$data['total']= $total2==0 ? 1 : $total2;
$data['page']=$pageNo;
return $this->response(200,'成功',$data);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment