|
|
|
@ -174,7 +174,7 @@ class OtherController extends CommonController
|
|
|
|
$suzhou = [];
|
|
|
|
$suzhou = [];
|
|
|
|
foreach ($suzhouArea as $item) {
|
|
|
|
foreach ($suzhouArea as $item) {
|
|
|
|
$suzhou[] = [
|
|
|
|
$suzhou[] = [
|
|
|
|
'company_area' => $item->company_area,
|
|
|
|
'area' => $item->company_area,
|
|
|
|
'total' => User::whereHas('company', function ($query) use ($item) {
|
|
|
|
'total' => User::whereHas('company', function ($query) use ($item) {
|
|
|
|
$query->where('company_area', $item->company_area);
|
|
|
|
$query->where('company_area', $item->company_area);
|
|
|
|
})->where('is_schoolmate', 1)->count()
|
|
|
|
})->where('is_schoolmate', 1)->count()
|
|
|
|
|