lyhzzz 1 ano atrás
pai
commit
5d62b98a25

+ 3 - 1
src/main/java/com/fdkankan/fusion/service/impl/TmDepartmentServiceImpl.java

@@ -172,7 +172,9 @@ public class TmDepartmentServiceImpl extends ServiceImpl<ITmDepartmentMapper, Tm
         String deptId = this.getDeptId();
         String zdDeptId = this.getZdDeptId(deptId);
         List<TmDepartment> deptList = this.getSonByDeptId(zdDeptId);
-        return deptList.stream().map(TmDepartment::getId).collect(Collectors.toList());
+        List<String> deptIds = deptList.stream().map(TmDepartment::getId).collect(Collectors.toList());
+        deptIds.add(zdDeptId);
+        return deptIds;
     }
 
     private String getZdDeptId(String deptId) {