修改条件筛选
This commit is contained in:
1 parent
8094365fb0
commit
588b0ce6c9
38 files changed
+722
-1570
No files matched your search
@@ -15,7 +15,7 @@ class Admin extends Base
|
||||
|
||||
// 查询数据
|
||||
$data = $this
|
||||
->order([$src['field'] =>$src['order']])
|
||||
->order([$src['field'] =>$src['type']])
|
||||
->where('id','>',2)
|
||||
->when(strlen($searchval)>0,function($query) use($searchval){
|
||||
$query->where('xingming|username','like','%'.$searchval.'%');
|
||||
|
||||
Reference in new issue
Block a user