From b4031fc3af212e94b20f5ae5699fcaed5e4ec1dd Mon Sep 17 00:00:00 2001 From: "gao.zhiyuan" Date: Sat, 15 Oct 2022 11:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E6=90=9C=E7=B4=A2=E9=83=A8?= =?UTF-8?q?=E9=97=A8=E5=8E=BB=E9=87=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/member/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/app/lib/controllers/member/index.js b/api/app/lib/controllers/member/index.js index 6c5793d..b6848dd 100644 --- a/api/app/lib/controllers/member/index.js +++ b/api/app/lib/controllers/member/index.js @@ -101,7 +101,9 @@ async function searchPepMember (ctx) { user.id AS pepUserId, user.name AS userName, role.name AS roleName, - department.name AS depName + role.id AS roleId, + department.name AS depName, + department.id AS depId FROM user LEFT JOIN user_role