From 20cad6535d687789fc6bb4e19570f2f0b29ba4ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=BF=97?= Date: Tue, 6 Jan 2026 14:05:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E5=87=BA=E9=94=99=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/MatchService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); }); }