修改角色数据权限字段,更新sql记录

This commit is contained in:
b2baccline
2020-10-14 14:00:32 +08:00
parent 4868d72ceb
commit 170f54b1ab
3 changed files with 8 additions and 3 deletions

View File

@@ -30,6 +30,6 @@ public class SysRoleUpdateDTO {
private String note;
@ApiModelProperty(value = "数据权限")
private Integer power;
private Integer scopeType;
}

View File

@@ -67,6 +67,6 @@ public class SysRole extends Model<SysRole> {
private LocalDateTime updateTime;
@ApiModelProperty("数据权限1全部2本人3本人及子部门4本部门")
private Integer power;
private Integer scopeType;
}

View File

@@ -60,4 +60,9 @@ CREATE TABLE `sys_lov_search`
UNIQUE KEY (`keyword`, `field`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
ROW_FORMAT = DYNAMIC COMMENT ='lov search';
ROW_FORMAT = DYNAMIC COMMENT ='lov search';
-- 角色数据权限字段
ALTER TABLE `ballcat`.`sys_role`
ADD COLUMN `scope_type` tinyint(1) NULL COMMENT '数据权限1全部2本人3本人及子部门4本部门' AFTER `update_time`;