|  |  |  | 
|---|
|  |  |  | String rPath =systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode()+systemDictDataBiz.queryByCode(Constants.OSS,Constants.MENU_IMG).getCode(); | 
|---|
|  |  |  | for (SystemMenu menu : menus) { | 
|---|
|  |  |  | if(Constants.equalsInteger(menu.getType(),Constants.PlatType.companyH5) && StringUtils.isNotBlank(menu.getIcon())){ | 
|---|
|  |  |  | menu.setIcon(rPath+menu.getIcon()); | 
|---|
|  |  |  | menu.setIcon(menu.getIcon()); | 
|---|
|  |  |  | menu.setResourcePath(rPath); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (menu.getParentId() == null) { | 
|---|
|  |  |  | SystemMenuListVO rootMenu = new SystemMenuListVO(); | 
|---|
|  |  |  | 
|---|
|  |  |  | menus.removeIf(menu -> menu.getParentId() == null); | 
|---|
|  |  |  | for (SystemMenuListVO child : rootMenus) { | 
|---|
|  |  |  | if(Constants.equalsInteger(child.getType(),Constants.PlatType.companyH5) && StringUtils.isNotBlank(child.getIcon())){ | 
|---|
|  |  |  | child.setIcon(rPath+child.getIcon()); | 
|---|
|  |  |  | child.setIcon(child.getIcon()); | 
|---|
|  |  |  | child.setResourcePath(rPath); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | this.fillChildren(child, menus); | 
|---|
|  |  |  | } | 
|---|