作者 王晓刚
1 个管道 的构建 通过 耗费 2 秒

分享bug

... ... @@ -25,8 +25,12 @@ class UsersController extends AdminBaseController{
$where['b.user_nickname'] = ['like',"%$keyword%"];
}
if($_POST['identity'] != ""){
if($_POST['identity'] == -1){
$where['a.status'] = 0;
}else{
$where['a.status'] = $_POST['identity'];
}
}
$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);
... ...
... ... @@ -28,6 +28,7 @@
<option value="2">一级业务员</option>
<option value="3">二级业务员</option>
<option value="4">学生</option>
<option value="-1">自由人</option>
</select>
<input type="submit" class="btn btn-primary" value="搜索"/>
<a class="btn btn-danger" href="{:url('Users/user_list')}">清空</a>
... ...