Commit 923142bb authored by Zheng Jie's avatar Zheng Jie
Browse files

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

close https://github.com/elunez/eladmin/issues/643
parent 34b91ea7
......@@ -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());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment