From c6867afe5194c5724c1d430000ffcf3798f5b6bb Mon Sep 17 00:00:00 2001 From: vilson <545522390@qq.com> Date: Tue, 29 Jan 2019 10:44:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=91=98=E9=82=AE=E7=AE=B1=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E6=90=9C=E7=B4=A2=E4=BF=AE=E6=94=B9=E4=B8=BA=E5=AE=8C?= =?UTF-8?q?=E5=85=A8=E5=8C=B9=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: vilson <545522390@qq.com> --- application/project/controller/DepartmentMember.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/project/controller/DepartmentMember.php b/application/project/controller/DepartmentMember.php index b711084..1ad6414 100644 --- a/application/project/controller/DepartmentMember.php +++ b/application/project/controller/DepartmentMember.php @@ -87,7 +87,7 @@ class DepartmentMember extends BasicApi } if (!$department_code) { //从平台查询 - $memberList = Member::where([['email', 'like', "%{$keyword}%"]])->whereNotIn('code', $departmentMemberIds)->select()->toArray(); + $memberList = Member::where([['email', '=', "{$keyword}"]])->whereNotIn('code', $departmentMemberIds)->select()->toArray(); if ($memberList) { foreach ($memberList as $member) { $item = [];