diff --git a/app/service/MatchService.php b/app/service/MatchService.php index 9cc7dc1..5c31fcd 100644 --- a/app/service/MatchService.php +++ b/app/service/MatchService.php @@ -202,7 +202,7 @@ class MatchService ->where('education_require', 'like', '%硕士%', 'or') ->where('education_require', 'like', '%博士%', 'or') ->where('education_require', '=', '', 'or') - ->where('education_require', 'null', '', 'or'); + ->whereRaw('education_require IS NULL', [], 'or'); }); } } @@ -217,7 +217,7 @@ class MatchService $q->where('sex_require', '不限制') ->where('sex_require', $resume['gender'], 'or') ->where('sex_require', '', 'or') - ->where('sex_require', 'null', '', 'or'); + ->whereRaw('sex_require IS NULL', [], 'or'); }); }