From 6bf11f04f8003530628dde3add2a72876e790348 Mon Sep 17 00:00:00 2001 From: "545522390@qq.com" Date: Mon, 21 Jan 2019 17:17:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=80=9A=E8=BF=87=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E9=82=80=E8=AF=B7=E7=BB=84=E7=BB=87=E6=88=90=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/project/controller/DepartmentMember.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/project/controller/DepartmentMember.php b/application/project/controller/DepartmentMember.php index 47348cc..1cd5fe0 100644 --- a/application/project/controller/DepartmentMember.php +++ b/application/project/controller/DepartmentMember.php @@ -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'); }