Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-usercenter
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2a751f25
authored
May 13, 2022
by
levphon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
用户组织全层级优化
1 parent
0a16fb8b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
src/main/resources/mapper/DepartmentMapper.xml
src/main/resources/mapper/DepartmentMapper.xml
View file @
2a751f2
...
...
@@ -114,11 +114,14 @@
</select>
<select
id=
"getTenantPathsByUserIds"
resultType=
"cn.com.glsx.shield.modules.model.UserSuperiorOrgModel"
>
SELECT tu.id,
tu.username,
tu.account,
SELECT
group_concat(to1.superior_id order by depth desc) superiorIds,
group_concat(td.department_name order by depth desc SEPARATOR '/') superiorNames
group_concat(td.department_name order by depth desc SEPARATOR '/') superiorNames,
tu.department_id orgId,
td.department_name orgName,
tu.id userId,
tu.username,
tu.account
FROM t_organization to1
inner join t_user tu on tu.department_id = to1.sub_id
left join t_department td on td.id = to1.superior_id
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment