|
|
|
|
@ -187,8 +187,8 @@ class OtherController extends CommonController
|
|
|
|
|
$country = [];
|
|
|
|
|
foreach ($countryArea as $item) {
|
|
|
|
|
$country[] = [
|
|
|
|
|
'company_city' => $item->company_city,
|
|
|
|
|
'company_total' => User::whereHas('company', function ($query) use ($item) {
|
|
|
|
|
'area' => $item->company_city,
|
|
|
|
|
'total' => User::whereHas('company', function ($query) use ($item) {
|
|
|
|
|
$query->where('company_city', $item->company_city);
|
|
|
|
|
})->where('is_schoolmate', 1)->count()
|
|
|
|
|
];
|
|
|
|
|
|