Commit 8c94811a authored by hujun's avatar hujun

//

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