新增通过链接邀请组织成员

This commit is contained in:
545522390@qq.com 2019-01-21 17:17:38 +08:00
parent ea4b622d8d
commit 6bf11f04f8

View File

@ -53,15 +53,15 @@ class DepartmentMember extends BasicApi
public function searchInviteMember()
{
$keyword = trim(Request::post('keyword'));
$department_code = Request::post('departmentCode','');
$department_code = Request::post('departmentCode', '');
$orgCode = getCurrentOrganizationCode();
if (!$keyword && !$department_code) {
$this->success('');
}
if ($department_code) {//添加部门成员
$departmentMemberIds = $this->model->where([['organization_code', '=', $orgCode],['department_code', '=', $department_code]])->column('account_code');
}else{
$departmentMemberIds = $this->model->where([['organization_code', '=', $orgCode], ['department_code', '=', $department_code]])->column('account_code');
} else {
//添加组织成员
$departmentMemberIds = MemberAccount::where([['organization_code', '=', $orgCode]])->column('member_code');
}