添加admin表phone字段
This commit is contained in:
1 parent
6b90b89bc2
commit
2e75e7431a
3 files changed
+5
-2
No files matched your search
@@ -55,7 +55,7 @@ class Index extends Base
|
||||
|
||||
//查询数据
|
||||
$data = $admin
|
||||
->field('id,xingming,xingbie,username,denglucishu,status,create_time')
|
||||
->field('id,xingming,xingbie,username,phone,denglucishu,status,create_time')
|
||||
->order([$order_field=>$order])
|
||||
->limit($limit_start,$limit_length)
|
||||
->all();
|
||||
@@ -65,7 +65,7 @@ class Index extends Base
|
||||
// 如果需要查询
|
||||
if($search){
|
||||
$data = $admin
|
||||
->field('id,xingming,xingbie,username,denglucishu,status,create_time')
|
||||
->field('id,xingming,xingbie,username,phone,denglucishu,status,create_time')
|
||||
->order([$order_field=>$order])
|
||||
->limit($limit_start,$limit_length)
|
||||
->where('username|xingming','like','%'.$search.'%')
|
||||
|
||||
Reference in new issue
Block a user