Commit cf4e9413 authored by hujun's avatar hujun

总监列表总记录数

parent 248b3c56
......@@ -194,7 +194,8 @@ class Broker extends Basic
$where['phone'] = ['LIKE',$this->params['phone'].'%'];
}
$this->data = $agents->getListDistrict($pageNo, $pageSize, 'id DESC', $field, $where);
$this->data['list'] = $agents->getListDistrict($pageNo, $pageSize, 'id DESC', $field, $where);
$this->data['total'] = $agents->getListDistrictTotal($where);
return $this->response($this->code, $this->msg, $this->data);
}
......
......@@ -157,4 +157,15 @@ public function saveList(){
return $result;
}
/**
* 总监列表总数
*
* @param $params
* @return int|string
*/
public function getListDistrictTotal($params){
return $this->where($params)
->count();
}
}
\ No newline at end of file
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