Browse Source

人员搜索部门去重

master
巴林闲侠 2 years ago
parent
commit
b4031fc3af
  1. 4
      api/app/lib/controllers/member/index.js

4
api/app/lib/controllers/member/index.js

@ -101,7 +101,9 @@ async function searchPepMember (ctx) {
user.id AS pepUserId, user.id AS pepUserId,
user.name AS userName, user.name AS userName,
role.name AS roleName, role.name AS roleName,
department.name AS depName role.id AS roleId,
department.name AS depName,
department.id AS depId
FROM FROM
user user
LEFT JOIN user_role LEFT JOIN user_role

Loading…
Cancel
Save