feat:(REQ-2227) 角色增加是否显示、是否隐藏、角色编码字段

This commit is contained in:
lilong 2024-04-11 11:01:32 +08:00
parent f11eca13bc
commit fe0b171f07
4 changed files with 43 additions and 0 deletions

View File

@ -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;
/** /**
* 获取角色对应所用的菜单不管例外 * 获取角色对应所用的菜单不管例外
* *

View File

@ -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 {

View File

@ -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;
/** /**
* 获取主键值 * 获取主键值
* *

View File

@ -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());