lyhzzz 1 년 전
부모
커밋
5d62b98a25
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      src/main/java/com/fdkankan/fusion/service/impl/TmDepartmentServiceImpl.java

+ 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) {