Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fangxinjiang
yifu-mvp
Commits
05e180ef
Commit
05e180ef
authored
Mar 04, 2025
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户服务平台-fxj
parent
0fb39ba7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
SysUserMapper.xml
...yifu-upms-biz/src/main/resources/mapper/SysUserMapper.xml
+5
-4
No files found.
yifu-upms/yifu-upms-biz/src/main/resources/mapper/SysUserMapper.xml
View file @
05e180ef
...
...
@@ -442,9 +442,10 @@
ORDER BY u.create_time DESC
</select>
<select
id=
"getCspUserByDeptId"
resultType=
"java.lang.String"
>
select c.username from sys_dept a
LEFT JOIN sys_user_dept_permission b on a.dept_id=b.dept_id
LEFT JOIN sys_user c on c.user_id = b.user_id
where a.dept_id=#{deptId} or FIND_IN_SET(#{deptId},a.ancestors);
SELECT a.username from sys_user a
where a.user_id in (
select c.user_id from sys_user_dept_permission c
where c.project_no in (SELECT project_no from sys_user_dept_permission where dept_id=#{deptId})
)
</select>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment