diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/Component.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/Component.java index 5564c9f..f20b6ae 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/Component.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/domain/Component.java @@ -74,6 +74,11 @@ public class Component implements Serializable { * 描述 */ private String description; + + /** + * 图标路径 + */ + private String iconPath; /** * 创建者 */ @@ -210,6 +215,15 @@ public class Component implements Serializable { this.description = description; } + + public String getIconPath() { + return iconPath; + } + + public void setIconPath(String iconPath) { + this.iconPath = iconPath; + } + public String getCreateBy() { return createBy; } diff --git a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ComponentServiceImpl.java b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ComponentServiceImpl.java index 06a40fc..2d59866 100644 --- a/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ComponentServiceImpl.java +++ b/ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/ComponentServiceImpl.java @@ -51,10 +51,10 @@ public class ComponentServiceImpl implements ComponentService { } @Override - public List queryAllGroupedByCategory() { + public List queryAllGroupedByCategory() { List componentList = this.componentDao.queryAll(); List result = new ArrayList<>(); - if (componentList.size()==0){ + if (componentList.isEmpty()){ return result; } Map> groupedComponent = componentList.stream().collect(Collectors.groupingBy(Component::getCategoryId)); diff --git a/ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/ComponentDaoMapper.xml b/ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/ComponentDaoMapper.xml index c51a176..d4af39d 100644 --- a/ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/ComponentDaoMapper.xml +++ b/ruoyi-modules/management-platform/src/main/resources/mapper/managementPlatform/ComponentDaoMapper.xml @@ -16,6 +16,8 @@ + + @@ -26,7 +28,7 @@ @@ -40,7 +42,7 @@