【8.3.3】【sys】【cache】更新角色名称的缓存过期时间

dev-8.3.3
stylefeng 2025-01-14 21:32:59 +08:00
parent 767158fc15
commit 6ab35c8503
4 changed files with 7 additions and 1 deletions

View File

@ -7,6 +7,8 @@ import cn.stylefeng.roses.kernel.rule.format.BaseSimpleFieldFormatProcess;
/**
* id访
* <p>
*
*
* @author fengshuonan
* @since 2023/11/13 17:49

View File

@ -7,6 +7,8 @@ import cn.stylefeng.roses.kernel.rule.format.BaseSimpleFieldFormatProcess;
/**
* Jsonurl
* <p>
*
*
* @author fengshuonan
* @since 2023/3/28 9:30

View File

@ -7,6 +7,8 @@ import cn.stylefeng.roses.kernel.sys.api.SysRoleServiceApi;
/**
* JSONid
* <p>
*
*
* @author fengshuonan
* @since 2023/5/4 21:20

View File

@ -354,7 +354,7 @@ public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> impl
sysRoleLambdaQueryWrapper.select(SysRole::getRoleName);
SysRole sysRole = this.getOne(sysRoleLambdaQueryWrapper, false);
if (sysRole != null) {
this.roleNameCache.put(roleId.toString(), sysRole.getRoleName());
this.roleNameCache.put(roleId.toString(), sysRole.getRoleName(), SysConstants.DEFAULT_SYS_CACHE_TIMEOUT_SECONDS);
return sysRole.getRoleName();
}