mirror of
http://192.168.1.205:9980/cf_devdept2/cf_imes_server.git
synced 2026-08-12 21:02:08 +08:00
用户管理给用户授权角色,删除USER_ROLE_ID_LIST下所有缓存,解决不同机构人授权没有马上生效问题
This commit is contained in:
+1
-1
@@ -375,7 +375,7 @@ public class PermissionServiceImpl implements PermissionService {
|
||||
|
||||
@Override
|
||||
@DSTransactional // 多数据源,使用 @DSTransactional 保证本地事务,以及数据源的切换
|
||||
@CacheEvict(value = RedisKeyConstants.USER_ROLE_ID_LIST, key = "#userId")
|
||||
@CacheEvict(value = RedisKeyConstants.USER_ROLE_ID_LIST, allEntries = true)
|
||||
public void assignUserRole(Long userId, Set<Long> roleIds, Long organId) {
|
||||
if(Objects.equals(userId, SecurityFrameworkUtils.getLoginUserId())) {
|
||||
throw exception(ROLE_ME_ERROR);
|
||||
|
||||
Reference in New Issue
Block a user