mirror of https://gitee.com/stylefeng/roses
【7.2.5】【role】修改新增角色的默认值填充
parent
9e1affc841
commit
a2b283d379
|
@ -123,6 +123,9 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
|
|||
SysRole sysRole = new SysRole();
|
||||
BeanUtil.copyProperties(sysRoleRequest, sysRole);
|
||||
|
||||
// 默认设置为启用
|
||||
sysRole.setAdminFlag(YesOrNotEnum.N.getCode());
|
||||
|
||||
// 默认设置为启用
|
||||
sysRole.setStatusFlag(StatusEnum.ENABLE.getCode());
|
||||
|
||||
|
|
Loading…
Reference in New Issue