修正单词拼写错误

master
RuoYi 7 years ago committed by Limy
parent 7d295de3da
commit fdc31d86e3

@ -21,14 +21,14 @@ public class TreeUtils
* @param typeId ID * @param typeId ID
* @return String * @return String
*/ */
public static List<Menu> getChildPerms(List<Menu> list, int praentId) public static List<Menu> getChildPerms(List<Menu> list, int parentId)
{ {
List<Menu> returnList = new ArrayList<Menu>(); List<Menu> returnList = new ArrayList<Menu>();
for (Iterator<Menu> iterator = list.iterator(); iterator.hasNext();) for (Iterator<Menu> iterator = list.iterator(); iterator.hasNext();)
{ {
Menu t = (Menu) iterator.next(); Menu t = (Menu) iterator.next();
// 一、根据传入的某个父节点ID,遍历该父节点的所有子节点 // 一、根据传入的某个父节点ID,遍历该父节点的所有子节点
if (t.getParentId() == praentId) if (t.getParentId() == parentId)
{ {
recursionFn(list, t); recursionFn(list, t);
returnList.add(t); returnList.add(t);

Loading…
Cancel
Save