|
|
|
|
@ -72,7 +72,9 @@ class UpdateCompany extends Command
|
|
|
|
|
// 批量更新(只更新有报名审核通过的用户)
|
|
|
|
|
$users = User::whereHas('courseSigns', function ($query) {
|
|
|
|
|
$query->where('status', 1);
|
|
|
|
|
})->whereNotNull('company_name')->get();
|
|
|
|
|
})->whereNotNull('company_name')
|
|
|
|
|
->whereNull('company_id')
|
|
|
|
|
->get();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$total = $users->count();
|
|
|
|
|
|