作者 xwp
1 个管道 的构建 通过 耗费 10 秒

隐藏默认学生

@@ -52,12 +52,16 @@ class User extends Backend @@ -52,12 +52,16 @@ class User extends Backend
52 ->with('group') 52 ->with('group')
53 ->where($where) 53 ->where($where)
54 ->where(['mobile' => ['<>','']]) 54 ->where(['mobile' => ['<>','']])
  55 + ->where(['username' => ['<>','']])
  56 + ->where(['nickname' => ['<>','']])
55 ->order($sort, $order) 57 ->order($sort, $order)
56 ->count(); 58 ->count();
57 $list = $this->model 59 $list = $this->model
58 ->with('group') 60 ->with('group')
59 ->where($where) 61 ->where($where)
60 ->where(['mobile' => ['<>','']]) 62 ->where(['mobile' => ['<>','']])
  63 + ->where(['username' => ['<>','']])
  64 + ->where(['nickname' => ['<>','']])
61 ->order($sort, $order) 65 ->order($sort, $order)
62 ->limit($offset, $limit) 66 ->limit($offset, $limit)
63 ->select(); 67 ->select();