Ver código fonte

SysUser修改

gao.qiang 1 ano atrás
pai
commit
70dfd35ac5

+ 14 - 0
base-common/src/main/java/com/ozs/common/core/domain/entity/SysUser.java

@@ -157,6 +157,12 @@ public class SysUser extends BaseEntity {
     @Excel(name = "角色名称")
     private String roleName;
 
+    /**
+     * 角色名称数组
+     */
+    @TableField(exist = false)
+    private List<String> roleNames;
+
     /**
      * 新密码
      */
@@ -214,6 +220,14 @@ public class SysUser extends BaseEntity {
         this.roleName = roleName;
     }
 
+    public List<String> getRoleNames() {
+        return roleNames;
+    }
+
+    public void setRoleNames(List<String> roleNames) {
+        this.roleNames = roleNames;
+    }
+
     public String getDeptName() {
         return deptName;
     }