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