mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-10 08:57:14 +08:00
fix(system/role): 修复角色菜单权限缓存未清理错误,优化角色菜单缓存逻辑
Closes #IBNENK
This commit is contained in:
@@ -131,7 +131,7 @@ public class DemoEnvironmentJob {
|
||||
roleMenuMapper.lambdaUpdate().notIn(RoleMenuDO::getRoleId, ROLE_FLAG).remove();
|
||||
return roleMapper.lambdaUpdate().notIn(RoleDO::getId, ROLE_FLAG).remove();
|
||||
});
|
||||
this.clean(menuCount, "菜单", CacheConstants.MENU_KEY_PREFIX, () -> menuMapper.lambdaUpdate()
|
||||
this.clean(menuCount, "菜单", CacheConstants.ROLE_MENU_KEY_PREFIX, () -> menuMapper.lambdaUpdate()
|
||||
.gt(MenuDO::getId, DELETE_FLAG)
|
||||
.remove());
|
||||
this.clean(deptCount, "部门", null, () -> deptMapper.lambdaUpdate().gt(DeptDO::getId, DEPT_FLAG).remove());
|
||||
|
Reference in New Issue
Block a user