提交 3a68ad3f 编写于 作者: sq3536's avatar sq3536

repair

上级 7995e591
......@@ -156,7 +156,7 @@ public class SysStructure
if(appmenu.getMenuitems()!=null)
{
appmenu.getMenuitems().forEach(item->{
appMenuNode.getChildren().add(loopMenuItem(appmenu.getMenuid(),systemid+"/菜单/"+app.getAppname()+appmenu.getMenuname(),item));
appMenuNode.getChildren().add(loopMenuItem(app.getAppid(),appmenu.getMenuid(),systemid+"/菜单/"+app.getAppname()+appmenu.getMenuname(),item));
});
}
......@@ -174,16 +174,16 @@ public class SysStructure
return root;
}
private PermissionNode loopMenuItem(String menuId,String fullName,FuncItem item)
private PermissionNode loopMenuItem(String appId,String menuId,String fullName,FuncItem item)
{
fullName=fullName+"/"+item.getName();
PermissionNode itemNode = PermissionNode.builder().label(item.getName()).fullName(fullName).type(PermissionType.APPMENU).build().setUniKey(systemid,menuId+"-"+item.getId());
PermissionNode itemNode = PermissionNode.builder().label(item.getName()).fullName(fullName).type(PermissionType.APPMENU).build().setUniKey(systemid,appId+"-"+menuId+"-"+item.getId());
if(item.getItems()!=null)
{
final String fname=fullName;
item.getItems().forEach(sub->{
itemNode.getChildren().add(loopMenuItem(menuId,fname,sub));
itemNode.getChildren().add(loopMenuItem(appId,menuId,fname,sub));
});
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册