diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/model/TreeModel.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/model/TreeModel.java index 77e2d21c..ed9261eb 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/model/TreeModel.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/model/TreeModel.java @@ -12,23 +12,23 @@ import com.jero.modules.system.entity.SysPermission; * 树形列表用到 */ public class TreeModel implements Serializable { - + private static final long serialVersionUID = 4013193970046502756L; private String key; - + private String title; - + private String slotTitle; - + private boolean isLeaf; - + private String icon; - + private Integer ruleFlag; - + private Map scopedSlots; - + public Map getScopedSlots() { return scopedSlots; } @@ -68,7 +68,7 @@ public class TreeModel implements Serializable { public void setIcon(String icon) { this.icon = icon; } - + private List children; public List getChildren() { @@ -80,9 +80,9 @@ public class TreeModel implements Serializable { } public TreeModel() { - + } - + public TreeModel(SysPermission permission) { this.key = permission.getId(); this.icon = permission.getIcon(); @@ -93,32 +93,32 @@ public class TreeModel implements Serializable { this.isLeaf = permission.isLeaf(); this.label = permission.getName(); if(!permission.isLeaf()) { - this.children = new ArrayList(); + this.children = new ArrayList<>(); } } - + public TreeModel(String key,String parentId,String slotTitle,Integer ruleFlag,boolean isLeaf) { this.key = key; this.parentId = parentId; this.ruleFlag=ruleFlag; this.slotTitle = slotTitle; - Map map = new HashMap(); + Map map = new HashMap<>(); map.put("title", "hasDatarule"); this.scopedSlots = map; this.isLeaf = isLeaf; this.value = key; if(!isLeaf) { - this.children = new ArrayList(); + this.children = new ArrayList<>(); } } - + private String parentId; - + private String label; - + private String value; - - + + public String getParentId() { return parentId; }