mirror of https://github.com/elunez/eladmin
parent
34b91ea7fd
commit
923142bbb2
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue