From b0cda6727bd236e8484101f29fc4762855b25cd0 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期四, 09 十月 2025 17:15:38 +0800 Subject: [PATCH] 资产维修记录接口 --- ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TDeptServiceImpl.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TDeptServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TDeptServiceImpl.java index ccaf76f..62a6894 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TDeptServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TDeptServiceImpl.java @@ -37,7 +37,6 @@ @Override public List<Integer> getAllSubDeptIds(String deptId) { List<Integer> allSubIds = new ArrayList<>(); - allSubIds.add(Integer.valueOf(deptId)); getSubDeptIdsRecursive(Integer.valueOf(deptId), allSubIds); return allSubIds.stream().distinct().collect(Collectors.toList()); } @@ -50,6 +49,8 @@ // 递归查询下级的下级 getSubDeptIdsRecursive(subId, allSubIds); } + allSubIds.add(Integer.valueOf(parentId)); + } /** * 构建部门树结构 -- Gitblit v1.7.1