添加admin表phone字段

This commit is contained in:
巴掌 committed 2018-10-18 12:54:12 +08:00
1 parent 6b90b89bc2
commit 2e75e7431a
3 files changed
+5 -2

No files matched your search

+2 -2
View File
@@ -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.'%')