菜单功能更新

This commit is contained in:
ludj
2022-11-30 13:16:03 +08:00
parent 9a271d0f79
commit dc2bcc17eb
2 changed files with 99 additions and 31 deletions

View File

@@ -279,8 +279,12 @@ public class MenuServiceImpl implements MenuService {
}
return menus;
}
MenuDto dto = this.findById(menuDto.getPid());
menus.addAll((Collection<? extends MenuDto>) dto);
//pid 不为null
JSONArray arr = menuTab.query("pid = '"+menuDto.getPid()+"'").getResultJSONArray(0);
for (int i = 0; i < arr.size(); i++) {
JSONObject json = arr.getJSONObject(i);
menus.add(this.menuJsonToMenuDto(json));
}
return getSuperior(findById(menuDto.getPid()), menus);
}