|
|
|
@ -237,7 +237,7 @@ class OtherController extends CommonController
|
|
|
|
// 条件1:有 course_id 的数据,通过 course.type 匹配课程体系
|
|
|
|
// 条件1:有 course_id 的数据,通过 course.type 匹配课程体系
|
|
|
|
// 条件2:没有 course_id 的数据,直接用 course_type_id 字段匹配
|
|
|
|
// 条件2:没有 course_id 的数据,直接用 course_type_id 字段匹配
|
|
|
|
// 两个条件是或关系
|
|
|
|
// 两个条件是或关系
|
|
|
|
if (request('course_type_id')) {
|
|
|
|
if ($courses->count()) {
|
|
|
|
$query->whereIn('course_id', $courses->pluck('id'));
|
|
|
|
$query->whereIn('course_id', $courses->pluck('id'));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($course_type_id) {
|
|
|
|
if ($course_type_id) {
|
|
|
|
|