master
cody 2 weeks ago
parent 66fd3f45af
commit 77a3f4ea2e

@ -120,7 +120,14 @@ class CompanyController extends BaseController
}
if ($key == 'company_tag') {
$valueArray = explode(',', $value);
$query->whereIn($key, $valueArray);
if (!empty($valueArray)) {
$query->where(function ($q) use ($valueArray) {
foreach ($valueArray as $item) {
$item = trim($item);
$q->where('company_tag', 'like', '%' . $item . '%');
}
});
}
continue;
}

@ -247,7 +247,7 @@ class OtherController extends CommonController
$course_ids = $courses->pluck('id');
// 上市公司数(所有上市公司)
$list['company_market_total'] = CourseSign::shangshi($start_date, $end_date,$course_ids);
$list['company_market_total'] = CourseSign::shangshi($start_date, $end_date, $course_ids);
// 跟班学员数在指定时间范围内报名的学员中from为'跟班学员'的数量)
$list['ganbu_total'] = CourseSign::genban($start_date, $end_date, $course_ids);

Loading…
Cancel
Save