成员邮箱地址搜索修改为完全匹配

Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
vilson 2019-01-29 10:44:32 +08:00
parent acf039cb78
commit c6867afe51

View File

@ -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 = [];