修改荣誉查询条件
This commit is contained in:
1 parent
e8eb0f1d70
commit
0364b3b8e5
1 file changed
+5
-3
@@ -44,16 +44,18 @@ class JsRongyuInfo extends Base
|
||||
$query->where('rongyuce',$rongyuce);
|
||||
})
|
||||
->when(strlen($searchval)>0,function($query) use($searchval){
|
||||
$query->whereOr('title|bianhao','like','%'.$searchval.'%')
|
||||
$query->where(function($z) use($searchval){
|
||||
$z->whereOr('title|bianhao','like','%'.$searchval.'%')
|
||||
->whereOr('id','in',function($q) use($searchval){
|
||||
$q->name('JsRongyuCanyu')
|
||||
->distinct(true)
|
||||
->distinct(true)
|
||||
->where('teacherid','in',function($w) use($searchval){
|
||||
$w->name('Teacher')
|
||||
->where('xingming','like','%'.$searchval.'%')
|
||||
->field('id');
|
||||
})
|
||||
})
|
||||
->field('rongyuid');
|
||||
});
|
||||
});
|
||||
})
|
||||
->with(
|
||||
|
||||
Reference in new issue
Block a user