修改考试设置表格
This commit is contained in:
1 parent
acd4180181
commit
a30ed5b256
146 files changed
+3216
-2782
No files matched your search
@@ -40,7 +40,7 @@ class School extends Base
|
||||
{
|
||||
$src = [
|
||||
'field'=>'paixu',
|
||||
'type'=>'asc',
|
||||
'order'=>'asc',
|
||||
'jibie'=>array(),
|
||||
'xingzhi'=>array(),
|
||||
'searchval'=>''
|
||||
@@ -58,7 +58,7 @@ class School extends Base
|
||||
|
||||
// 查询数据
|
||||
$data = $this
|
||||
->order([$src['field'] =>$src['type']])
|
||||
->order([$src['field'] =>$src['order']])
|
||||
->when(count($xingzhi)>0,function($query) use($xingzhi){
|
||||
$query->where('xingzhi','in',$xingzhi);
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user