diff --git a/src/main/java/com/ruoyi/common/utils/TreeUtils.java b/src/main/java/com/ruoyi/common/utils/TreeUtils.java index bc454a96..1d090c8d 100644 --- a/src/main/java/com/ruoyi/common/utils/TreeUtils.java +++ b/src/main/java/com/ruoyi/common/utils/TreeUtils.java @@ -21,14 +21,14 @@ public class TreeUtils * @param typeId 传入的父节点ID * @return String */ - public static List getChildPerms(List list, int praentId) + public static List getChildPerms(List list, int parentId) { List returnList = new ArrayList(); for (Iterator iterator = list.iterator(); iterator.hasNext();) { Menu t = (Menu) iterator.next(); // 一、根据传入的某个父节点ID,遍历该父节点的所有子节点 - if (t.getParentId() == praentId) + if (t.getParentId() == parentId) { recursionFn(list, t); returnList.add(t);