|
|
|
@ -84,4 +84,14 @@ public class DeptClient implements IDeptClient {
|
|
|
|
|
} |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public String getAncestorsByDeptId(Long deptId) { |
|
|
|
|
Dept dept = service.getById(deptId); |
|
|
|
|
if(!Objects.isNull(dept)){ |
|
|
|
|
String ancestors = dept.getAncestors(); |
|
|
|
|
return ancestors+","+deptId; |
|
|
|
|
} |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|