|
@@ -315,6 +315,10 @@ public class SysDeptServiceImpl implements ISysDeptService
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
public List<SysDept> listChildrenDepts(Long deptId) {
|
|
public List<SysDept> listChildrenDepts(Long deptId) {
|
|
|
|
+ if (ObjectUtils.isEmpty(deptId)) {
|
|
|
|
+ return null;
|
|
|
|
+ }
|
|
|
|
+
|
|
List<SysDept> allDepts = selectDeptList(new SysDept());
|
|
List<SysDept> allDepts = selectDeptList(new SysDept());
|
|
SysDept sysDept = ObjectUtils.filterOne(allDepts, dept -> deptId.equals(dept.getId()));
|
|
SysDept sysDept = ObjectUtils.filterOne(allDepts, dept -> deptId.equals(dept.getId()));
|
|
List<SysDept> returnData = Lists.newArrayListWithCapacity(16);
|
|
List<SysDept> returnData = Lists.newArrayListWithCapacity(16);
|