From 51e824c7890802b0dd4143dddb487ef26aec134a Mon Sep 17 00:00:00 2001 From: liuleilei <234@qq.com> Date: 星期一, 14 八月 2023 09:26:34 +0800 Subject: [PATCH] h5菜单列表 --- server/src/main/java/doumeemes/dao/system/vo/SystemMenuListVO.java | 2 ++ server/src/main/java/doumeemes/biz/system/impl/SystemMenuBizImpl.java | 6 ++++-- server/src/main/java/doumeemes/dao/system/model/SystemMenu.java | 3 +++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/server/src/main/java/doumeemes/biz/system/impl/SystemMenuBizImpl.java b/server/src/main/java/doumeemes/biz/system/impl/SystemMenuBizImpl.java index 0b88ae7..0baccb7 100644 --- a/server/src/main/java/doumeemes/biz/system/impl/SystemMenuBizImpl.java +++ b/server/src/main/java/doumeemes/biz/system/impl/SystemMenuBizImpl.java @@ -110,10 +110,11 @@ List<SystemMenuListVO> menus = systemMenuService.findList(dto); List<SystemMenuListVO> rootMenus = new ArrayList<>(); // 娣诲姞鏍硅彍鍗� - String rPath ="";//systemDictDataBiz.queryByCode(Constants.OSS,Constants.RESOURCE_PATH).getCode()+systemDictDataBiz.queryByCode(Constants.OSS,Constants.MENU_IMG).getCode(); + 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(); @@ -126,6 +127,7 @@ for (SystemMenuListVO child : rootMenus) { if(Constants.equalsInteger(child.getType(),Constants.PlatType.companyH5) && StringUtils.isNotBlank(child.getIcon())){ child.setIcon(rPath+child.getIcon()); + child.setResourcePath(rPath); } this.fillChildren(child, menus); } diff --git a/server/src/main/java/doumeemes/dao/system/model/SystemMenu.java b/server/src/main/java/doumeemes/dao/system/model/SystemMenu.java index c09fa83..19af5f5 100644 --- a/server/src/main/java/doumeemes/dao/system/model/SystemMenu.java +++ b/server/src/main/java/doumeemes/dao/system/model/SystemMenu.java @@ -75,4 +75,7 @@ @ApiModelProperty(value = "绫诲瀷 0骞冲彴 1浼佷笟PC绔� 2浼佷笟鎵嬫満绔�", example = "1") private Integer type; + + @ApiModelProperty(value = "鏂囦欢璁块棶鍓嶇紑") + private String resourcePath; } diff --git a/server/src/main/java/doumeemes/dao/system/vo/SystemMenuListVO.java b/server/src/main/java/doumeemes/dao/system/vo/SystemMenuListVO.java index 6d2c85d..36f401d 100644 --- a/server/src/main/java/doumeemes/dao/system/vo/SystemMenuListVO.java +++ b/server/src/main/java/doumeemes/dao/system/vo/SystemMenuListVO.java @@ -27,4 +27,6 @@ @ApiModelProperty(value = "鏇存柊浜轰俊鎭�") private SystemUser updateUserInfo; + @ApiModelProperty(value = "鏂囦欢璁块棶鍓嶇紑") + private String resourcePath; } -- Gitblit v1.9.3