Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Eladmin
Commits
923142bb
Commit
923142bb
authored
Jun 07, 2021
by
Zheng Jie
Browse files
[Bug修复](master): 修复部门递归问题
close
https://github.com/elunez/eladmin/issues/643
parent
34b91ea7
Changes
1
Hide whitespace changes
Inline
Side-by-side
eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/DeptServiceImpl.java
View file @
923142bb
...
...
@@ -179,7 +179,7 @@ public class DeptServiceImpl implements DeptService {
deptList
.
forEach
(
dept
->
{
if
(
dept
!=
null
&&
dept
.
getEnabled
())
{
List
<
Dept
>
depts
=
deptRepository
.
findByPid
(
dept
.
getId
());
if
(
dept
List
.
size
()
!=
0
)
{
if
(
dept
s
.
size
()
!=
0
)
{
list
.
addAll
(
getDeptChildren
(
depts
));
}
list
.
add
(
dept
.
getId
());
...
...
Write
Preview
Supports
Markdown
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