...
|
...
|
@@ -24,19 +24,16 @@ class UsersController extends AdminBaseController{ |
|
|
$keyword = $_POST['keyword'];
|
|
|
$where['b.user_nickname'] = ['like',"%$keyword%"];
|
|
|
}
|
|
|
if(empty($_POST['id'])){
|
|
|
$where['id'] = ['eq',$_POST['id']];
|
|
|
if(!empty($_POST['id'])){
|
|
|
$where['a.id'] = ['eq',$_POST['id']];
|
|
|
}
|
|
|
if($_POST['identity'] != ""){
|
|
|
if($_POST['identity'] == -1){
|
|
|
$where['a.status'] = 0;
|
|
|
$where['a.status'] = ['eq',0];
|
|
|
}else{
|
|
|
$where['a.status'] = $_POST['identity'];
|
|
|
$where['a.status'] = ['eq',$_POST['identity']];
|
|
|
}
|
|
|
}
|
|
|
if(!empty($_POST['id'])){
|
|
|
$where['id'] = ['eq',$_POST];
|
|
|
}
|
|
|
$data = Db::name('my_user') -> alias('a') -> field('a.*,b.user_nickname') -> join('user b','a.uid = b.id','LEFT') -> where($where) -> paginate(1000000);
|
|
|
}else{
|
|
|
$data = Db::name('my_user') -> alias('a') -> field('a.*,b.user_nickname') -> join('user b','a.uid = b.id','LEFT') -> paginate(12);
|
...
|
...
|
|