feat:(REQ-2227) 角色增加是否显示、是否隐藏、角色编码字段
This commit is contained in:
parent
f11eca13bc
commit
fe0b171f07
@ -64,6 +64,20 @@ public class SaasRoleVO {
|
|||||||
private Date createAt;
|
private Date createAt;
|
||||||
|
|
||||||
private Date updateAt;
|
private Date updateAt;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* '角色编码'
|
||||||
|
*/
|
||||||
|
private String roleCode;
|
||||||
|
/**
|
||||||
|
* '是否显示'
|
||||||
|
*/
|
||||||
|
private Boolean isDisplay;
|
||||||
|
/**
|
||||||
|
* '是否启用'
|
||||||
|
*/
|
||||||
|
private Boolean enabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取角色对应所用的菜单,不管例外
|
* 获取角色对应所用的菜单,不管例外
|
||||||
*
|
*
|
||||||
|
|||||||
@ -72,6 +72,19 @@ public class SaveOrUpdateRoleVO {
|
|||||||
*/
|
*/
|
||||||
private Set<Long> permissionIds;
|
private Set<Long> permissionIds;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* '角色编码'
|
||||||
|
*/
|
||||||
|
private String roleCode;
|
||||||
|
/**
|
||||||
|
* '是否显示'
|
||||||
|
*/
|
||||||
|
private Boolean isDisplay;
|
||||||
|
/**
|
||||||
|
* '是否启用'
|
||||||
|
*/
|
||||||
|
private Boolean enabled;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public static class GroupInfoVO {
|
public static class GroupInfoVO {
|
||||||
|
|
||||||
|
|||||||
@ -76,6 +76,19 @@ public class SaasRole extends BaseEntity<SaasRole> {
|
|||||||
@Deprecated
|
@Deprecated
|
||||||
private Long fitOuTypeBit;
|
private Long fitOuTypeBit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* '角色编码'
|
||||||
|
*/
|
||||||
|
private String roleCode;
|
||||||
|
/**
|
||||||
|
* '是否显示'
|
||||||
|
*/
|
||||||
|
private Boolean isDisplay;
|
||||||
|
/**
|
||||||
|
* '是否启用'
|
||||||
|
*/
|
||||||
|
private Boolean enabled;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取主键值
|
* 获取主键值
|
||||||
*
|
*
|
||||||
|
|||||||
@ -462,6 +462,9 @@ public class RoleServiceImpl extends ServiceImpl<SaasRoleMapper, SaasRole>
|
|||||||
throw new ServiceException("角色不存在");
|
throw new ServiceException("角色不存在");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
saasRole.setRoleCode(saveOrUpdateRole.getRoleCode());
|
||||||
|
saasRole.setIsDisplay(saveOrUpdateRole.getIsDisplay());
|
||||||
|
saasRole.setEnabled(saveOrUpdateRole.getEnabled());
|
||||||
saasRole.setName(saveOrUpdateRole.getName());
|
saasRole.setName(saveOrUpdateRole.getName());
|
||||||
saasRole.setDescription(saasRole.getDescription());
|
saasRole.setDescription(saasRole.getDescription());
|
||||||
saasRole.setRoleType(saveOrUpdateRole.getRoleType());
|
saasRole.setRoleType(saveOrUpdateRole.getRoleType());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user