|
|
|
|
@ -134,7 +134,9 @@ class OtherController extends CommonController
|
|
|
|
|
$courseType->course_signs_total = CourseSign::courseSignsTotalByUnique($start_date, $end_date, 1, $courses->pluck('id'), null, $userIds);
|
|
|
|
|
}
|
|
|
|
|
// 苏州区域数据
|
|
|
|
|
$suzhouArea = Company::where('company_city', '苏州市')->groupBy('company_area')->get(['company_area']);
|
|
|
|
|
$suzhouArea = Company::where('company_city', '苏州市')->groupBy('company_area')
|
|
|
|
|
->whereNotNull('company_area')
|
|
|
|
|
->get(['company_area']);
|
|
|
|
|
$suzhou = [];
|
|
|
|
|
foreach ($suzhouArea as $item) {
|
|
|
|
|
$suzhou[] = [
|
|
|
|
|
@ -146,7 +148,8 @@ class OtherController extends CommonController
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 全国数据
|
|
|
|
|
$countryArea = Company::groupBy('company_city')->get(['company_area']);
|
|
|
|
|
$countryArea = Company::groupBy('company_city')->whereNotNull('company_city')
|
|
|
|
|
->get(['company_area']);
|
|
|
|
|
$country = [];
|
|
|
|
|
foreach ($countryArea as $item) {
|
|
|
|
|
$country[] = [
|
|
|
|
|
|