duyj 2 tahun lalu
induk
melakukan
d1d56ec3bf

+ 11 - 0
suishenbang-common/src/main/java/com/dgtly/common/core/domain/Ztree.java

@@ -35,6 +35,9 @@ public class Ztree implements Serializable
     /** 是否能勾选 */
     private boolean nocheck = false;
 
+    /** code */
+    private String code;
+
     public Long getId()
     {
         return id;
@@ -75,6 +78,14 @@ public class Ztree implements Serializable
         this.title = title;
     }
 
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
     public boolean isChecked()
     {
         return checked;

+ 1 - 0
suishenbang-system/src/main/java/com/dgtly/system/service/impl/SysUserOrderAuthorServiceImpl.java

@@ -170,6 +170,7 @@ public class SysUserOrderAuthorServiceImpl implements ISysUserOrderAuthorService
             ztree.setpId(menu.getParentId());
             ztree.setName(menu.getAuthorName());
             ztree.setTitle(menu.getAuthorName());
+            ztree.setCode(menu.getCode());
             if (isCheck)
             {
                 ztree.setChecked(roleMenuList.contains(menu.getAuthorId()));