正在显示
2 个修改的文件
包含
7 行增加
和
5 行删除
@@ -48,15 +48,10 @@ class UserController extends AdminBaseController | @@ -48,15 +48,10 @@ class UserController extends AdminBaseController | ||
48 | /**搜索条件**/ | 48 | /**搜索条件**/ |
49 | $user_login = $this->request->param('user_login'); | 49 | $user_login = $this->request->param('user_login'); |
50 | $user_email = trim($this->request->param('user_email')); | 50 | $user_email = trim($this->request->param('user_email')); |
51 | - echo $uid = $this->request->param('uid');exit(); | ||
52 | if ($user_login) { | 51 | if ($user_login) { |
53 | $where['user_login'] = ['like', "%$user_login%"]; | 52 | $where['user_login'] = ['like', "%$user_login%"]; |
54 | } | 53 | } |
55 | 54 | ||
56 | - //下级人员 | ||
57 | - if($uid) { | ||
58 | - $where['parent_id'] = ['eq', $uid]; | ||
59 | - } | ||
60 | 55 | ||
61 | $users = Db::name('user') | 56 | $users = Db::name('user') |
62 | ->where($where) | 57 | ->where($where) |
@@ -78,6 +78,13 @@ class AdminIndexController extends AdminBaseController | @@ -78,6 +78,13 @@ class AdminIndexController extends AdminBaseController | ||
78 | if (!empty($param['max'])){ | 78 | if (!empty($param['max'])){ |
79 | $where1['balance']=['elt',$param['max']]; | 79 | $where1['balance']=['elt',$param['max']]; |
80 | } | 80 | } |
81 | + | ||
82 | + $uid = $param['uid']; | ||
83 | + //下级人员 | ||
84 | + if($uid) { | ||
85 | + $where['parent_id'] = ['eq', $uid]; | ||
86 | + } | ||
87 | + | ||
81 | $usersQuery = Db::name('user'); | 88 | $usersQuery = Db::name('user'); |
82 | 89 | ||
83 | $list = $usersQuery->whereOr($keywordComplex)->where($where)->where($where1)->order("create_time DESC")->paginate(10); | 90 | $list = $usersQuery->whereOr($keywordComplex)->where($where)->where($where1)->order("create_time DESC")->paginate(10); |
-
请 注册 或 登录 后发表评论