修改用户列表筛选条件
This commit is contained in:
@@ -40,6 +40,7 @@ class User extends BaseController
|
||||
$citys = $this->input_param('citys');
|
||||
$sort = $this->input_param('sort');
|
||||
$order = $this->input_param('order');
|
||||
$status = $this->input_param('status');
|
||||
!$page && $page = 1;
|
||||
!$limit && $limit = 10;
|
||||
$sort_order = 'id desc';
|
||||
@@ -56,6 +57,7 @@ class User extends BaseController
|
||||
strlen($groupType) && $where['groupType'] = $groupType;
|
||||
$citys && $where['cityId'] = $citys[1];
|
||||
$orgName && $where['orgName'] = $orgName;
|
||||
strlen($status) && $where['status'] = intval($status);
|
||||
$count = $this->pinganUsers->count($where);
|
||||
if ($count) {
|
||||
$res = $this->pinganUsers->select($where, $sort_order, $page, $limit);
|
||||
|
||||
@@ -32,6 +32,7 @@ class User extends BaseController
|
||||
$citys = $this->input_param('citys');
|
||||
$sort = $this->input_param('sort');
|
||||
$order = $this->input_param('order');
|
||||
$status = $this->input_param('status');
|
||||
!$page && $page = 1;
|
||||
!$limit && $limit = 10;
|
||||
$sort_order = 'id desc';
|
||||
@@ -48,6 +49,7 @@ class User extends BaseController
|
||||
strlen($groupType) && $where['groupType'] = $groupType;
|
||||
$citys && $where['cityId'] = $citys[1];
|
||||
$orgName && $where['orgName'] = $orgName;
|
||||
strlen($status) && $where['status'] = intval($status);
|
||||
$count = $this->pinganUsers->count($where);
|
||||
if ($count) {
|
||||
$res = $this->pinganUsers->select($where, $sort_order, $page, $limit);
|
||||
|
||||
Reference in New Issue
Block a user