Commit 8c94811a authored by hujun's avatar hujun

//

parent 95adac0e
......@@ -164,11 +164,11 @@ class District extends Basic
$pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo'];
$pageSize = empty($this->params['pageSize']) ? 10 : $this->params['pageSize'];
$agents = new ADistrict();
$where = [];
if (!empty($this->params['site_id'] && $this->userId != 1)) {
$where['site_id'] = $this->params['site_id'];
}
$where = [];
$field = 'id,district_name';
$where['status'] = 0;
$data['data'] = $agents->getList($pageNo, $pageSize, 'id DESC', $field, $where);
......
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