Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Z
zlmy-cloud
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
zlmy
zlmy-cloud
Commits
6b102510
Commit
6b102510
authored
Aug 06, 2025
by
Rensq
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(sys): 优化组织结构树展示逻辑
- 在组织结构树查询中增加了对非下属部门的过滤功能 - 当 isSubordinates 参数不为 "1" 时,只展示本级部门
parent
d3d9c014
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
NewSysUserController.java
...om/testor/module/sys/controller/NewSysUserController.java
+6
-0
No files found.
zlmy-modules/zlmy-boot/src/main/java/com/testor/module/sys/controller/NewSysUserController.java
View file @
6b102510
...
@@ -585,6 +585,12 @@ public class NewSysUserController extends SuperController {
...
@@ -585,6 +585,12 @@ public class NewSysUserController extends SuperController {
.
sorted
(
Comparator
.
comparing
(
SysOrg:
:
getIsDept
).
reversed
())
// 按照IS_DEPT降序排序
.
sorted
(
Comparator
.
comparing
(
SysOrg:
:
getIsDept
).
reversed
())
// 按照IS_DEPT降序排序
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
if
(!
"1"
.
equals
(
isSubordinates
))
{
childOrgs
=
childOrgs
.
stream
()
.
filter
(
org
->
"1"
.
equals
(
org
.
getIsDept
()))
.
collect
(
Collectors
.
toList
());
}
// 递归处理每个子节点
// 递归处理每个子节点
for
(
SysOrg
childOrg
:
childOrgs
)
{
for
(
SysOrg
childOrg
:
childOrgs
)
{
NewTreeVo
childNewTreeVo
=
BeanHelper
.
beanToBean
(
childOrg
,
NewTreeVo
.
class
);
NewTreeVo
childNewTreeVo
=
BeanHelper
.
beanToBean
(
childOrg
,
NewTreeVo
.
class
);
...
...
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