mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 01:01:52 +08:00
修复多租户-租户套餐未及时生效的bug见https://gitee.com/zhijiantianya/ruoyi-vue-pro/issues/I4WARM#git-comment-divider
This commit is contained in:
parent
d2075d5c18
commit
a0c41623f2
@ -136,7 +136,12 @@ public class RoleServiceImpl implements RoleService {
|
|||||||
role.setDataScope(DataScopeEnum.ALL.getScope()); // 默认可查看所有数据。原因是,可能一些项目不需要项目权限
|
role.setDataScope(DataScopeEnum.ALL.getScope()); // 默认可查看所有数据。原因是,可能一些项目不需要项目权限
|
||||||
roleMapper.insert(role);
|
roleMapper.insert(role);
|
||||||
// 发送刷新消息
|
// 发送刷新消息
|
||||||
roleProducer.sendRoleRefreshMessage();
|
TransactionSynchronizationManager.registerSynchronization(new TransactionSynchronization() {
|
||||||
|
@Override
|
||||||
|
public void afterCommit() {
|
||||||
|
roleProducer.sendRoleRefreshMessage();
|
||||||
|
}
|
||||||
|
});
|
||||||
// 返回
|
// 返回
|
||||||
return role.getId();
|
return role.getId();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user