|
|
|
|
@ -156,9 +156,9 @@ class OtherController extends CommonController
|
|
|
|
|
$query->where('is_schoolmate', 1);
|
|
|
|
|
})->with([
|
|
|
|
|
'users' => function ($query) {
|
|
|
|
|
$query->select('id', 'name', 'company_position')->where('is_schoolmate', 1)->with([
|
|
|
|
|
$query->select('id', 'name', 'company_position','company_id')->where('is_schoolmate', 1)->with([
|
|
|
|
|
'courseSigns' => function ($query) {
|
|
|
|
|
$query->select('id','status')->with('course')->orderBy('fee_status', 'desc');
|
|
|
|
|
$query->select('id','status','user_id')->with('course')->orderBy('fee_status', 'desc');
|
|
|
|
|
}
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
|