教师荣誉增加姓名查询
This commit is contained in:
1 parent
fbcde47138
commit
e8eb0f1d70
1 file changed
+11
-1
@@ -44,7 +44,17 @@ class JsRongyuInfo extends Base
|
||||
$query->where('rongyuce',$rongyuce);
|
||||
})
|
||||
->when(strlen($searchval)>0,function($query) use($searchval){
|
||||
$query->where('title|bianhao','like','%'.$searchval.'%');
|
||||
$query->whereOr('title|bianhao','like','%'.$searchval.'%')
|
||||
->whereOr('id','in',function($q) use($searchval){
|
||||
$q->name('JsRongyuCanyu')
|
||||
->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