修改用户列表筛选条件

This commit is contained in:
lcc
2025-10-17 17:08:08 +08:00
parent 805a6bb91c
commit c57d6f13ee
2 changed files with 4 additions and 0 deletions
@@ -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);