Skip to content

Commit

Permalink
[Bug修复](master): 修复部门递归问题
Browse files Browse the repository at this point in the history
  • Loading branch information
elunez committed Jun 7, 2021
1 parent 34b91ea commit 923142b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public List<Long> getDeptChildren(List<Dept> deptList) {
deptList.forEach(dept -> {
if (dept!=null && dept.getEnabled()) {
List<Dept> depts = deptRepository.findByPid(dept.getId());
if (deptList.size() != 0) {
if (depts.size() != 0) {
list.addAll(getDeptChildren(depts));
}
list.add(dept.getId());
Expand Down

0 comments on commit 923142b

Please sign in to comment.