【7.2.5】【role】修改新增角色的默认值填充

pull/37/head
fengshuonan 2022-09-30 16:28:54 +08:00
parent 9e1affc841
commit a2b283d379
1 changed files with 3 additions and 0 deletions

View File

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