This commit is contained in:
巴掌 committed 2021-02-22 14:20:57 +08:00
1 parent 36d6c08ea7
commit 3c95c4ff7a
9 files changed
+81 -77

No files matched your search

+8 -9
View File
@@ -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()
{