[Bug修复](master): 修复部门递归问题

close https://github.com/elunez/eladmin/issues/643
pull/654/head
Zheng Jie 2021-06-07 14:47:33 +08:00
parent 34b91ea7fd
commit 923142bbb2
1 changed files with 1 additions and 1 deletions

View File

@ -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 (deptList.size() != 0) {
if (depts.size() != 0) {
list.addAll(getDeptChildren(depts));
}
list.add(dept.getId());