0
This commit is contained in:
1 parent
36d6c08ea7
commit
3c95c4ff7a
9 files changed
+81
-77
No files matched your search
@@ -42,22 +42,21 @@ class Fields extends BaseModel
|
||||
->with([
|
||||
'flCategory' => function ($query) {
|
||||
$query->field('id, title');
|
||||
},
|
||||
'flAdmin' => function ($query) {
|
||||
$query->field('id, xingming, school_id')
|
||||
->with([
|
||||
'adSchool' => function ($q) {
|
||||
$q->field('id, jiancheng');
|
||||
}
|
||||
]);
|
||||
}
|
||||
])
|
||||
->append(['userInfo'])
|
||||
->select();
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
|
||||
// 上传人数据关联
|
||||
public function flTeacher()
|
||||
{
|
||||
return $this->belongsTo('\app\teacher\model\Teacher', 'user_id', 'id');
|
||||
}
|
||||
|
||||
|
||||
// 上传人数据关联
|
||||
public function flAdmin()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user