/match/batch接口报错修复

This commit is contained in:
杨志
2026-01-06 14:02:51 +08:00
parent 0f1bf1ca02
commit 00204320eb

View File

@@ -199,10 +199,10 @@ class MatchService
// 如果是本科及以上,可以匹配"本科"、"本科及以上"等要求
$query->where(function($q) {
$q->where('education_require', 'like', '%本科%')
->orWhere('education_require', 'like', '%硕士%')
->orWhere('education_require', 'like', '%博士%')
->orWhere('education_require', '=', '')
->orWhereNull('education_require');
->where('education_require', 'like', '%硕士%', 'or')
->where('education_require', 'like', '%博士%', 'or')
->where('education_require', '=', '', 'or')
->where('education_require', 'null', '', 'or');
});
}
}
@@ -215,9 +215,9 @@ class MatchService
if (!empty($resume['gender'])) {
$query->where(function($q) use ($resume) {
$q->where('sex_require', '不限制')
->orWhere('sex_require', $resume['gender'])
->orWhere('sex_require', '')
->orWhereNull('sex_require');
->where('sex_require', $resume['gender'], 'or')
->where('sex_require', '', 'or')
->where('sex_require', 'null', '', 'or');
});
}