Commit 7ae97ce9 authored by zfc's avatar zfc

authgroup status

parent 3c2f8364
...@@ -60,7 +60,7 @@ class Auth extends Basic ...@@ -60,7 +60,7 @@ class Auth extends Basic
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize']; $pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
$auth_group = New AuthGroup(); $auth_group = New AuthGroup();
$where = 'status <> 0'; $where = 'status in(0,1)';
$search=$params['search']; $search=$params['search'];
if(!empty($search)){ if(!empty($search)){
...@@ -87,7 +87,7 @@ class Auth extends Basic ...@@ -87,7 +87,7 @@ class Auth extends Basic
$pageNo = empty($params['pageNo']) ? 1 : $params['pageNo']; $pageNo = empty($params['pageNo']) ? 1 : $params['pageNo'];
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize']; $pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
$auth_group = New AuthGroup(); $auth_group = New AuthGroup();
$where = 'status <> 0'; $where = 'status = 0';
$data['list'] = $auth_group->getList2('id desc','id,title', $where); $data['list'] = $auth_group->getList2('id desc','id,title', $where);
return $this->response(200, '', $data); 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