master
cody 3 months ago
parent e1357be348
commit 474336e3e1

@ -546,8 +546,12 @@ class CourseSign extends SoftDeletesModel
}
// 地区
$suzhouArea = Company::approvedStudents()->where('company_city', '苏州市')->pluck('company_area')->unique();
dd($suzhouArea);
$suzhouArea = Company::approvedStudents()
->where('company_city', '苏州市')
->whereNotNull('company_area')
->where('company_area', '!=', '')
->pluck('company_area')
->unique();
$list = [];
foreach ($suzhouArea as $area) {
$sourseSignList2 = (clone $courseSignList)->whereHas('user', function ($query) use ($area) {

Loading…
Cancel
Save