增加班主任设置
This commit is contained in:
1 parent
701436b09f
commit
d2729c1bf5
28 files changed
+501
-1110
No files matched your search
@@ -40,11 +40,11 @@ class Fields extends BaseModel
|
||||
$query->where('oldname', 'like', '%' . $src['searchval'] . '%');
|
||||
})
|
||||
->with([
|
||||
'flUser' => function($query){
|
||||
'flTeacher' => function($query){
|
||||
$query
|
||||
->field('id, xingming, school_id')
|
||||
->field('id, xingming, danwei_id')
|
||||
->with([
|
||||
'adSchool' => function($q){
|
||||
'jsDanwei' => function($q){
|
||||
$q->field('id, jiancheng');
|
||||
}
|
||||
]);
|
||||
@@ -62,9 +62,9 @@ class Fields extends BaseModel
|
||||
|
||||
|
||||
// 上传人数据关联
|
||||
public function flUser()
|
||||
public function flTeacher()
|
||||
{
|
||||
return $this->belongsTo('\app\admin\model\Admin', 'user_id', 'id');
|
||||
return $this->belongsTo('\app\teacher\model\Teacher', 'teacher_id', 'id');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user