fix: 部门搜索问题
This commit is contained in:
+1
-1
@@ -253,7 +253,7 @@ public class SysDepartServiceImpl extends ServiceImpl<SysDepartMapper, SysDepart
|
||||
Collectors.mapping(SysDepart::getId, Collectors.toList())));
|
||||
|
||||
// 使用递归方法来收集所有子部门的ID
|
||||
List<String> subDepIds = Collections.synchronizedList(new ArrayList<>());
|
||||
List<String> subDepIds = Collections.synchronizedList(new ArrayList<>(Collections.singletonList(departId)));
|
||||
collectSubDepIds(departId, childrenMap, subDepIds);
|
||||
|
||||
return subDepIds;
|
||||
|
||||
Reference in New Issue
Block a user