小组用户权限缓存更新获取小组下权限文件方法,增加角色下模型数据查询方法

This commit is contained in:
anhc 2022-07-04 17:43:48 +08:00
parent 2cabd75966
commit 5b93fc8fa4
2 changed files with 23 additions and 0 deletions

View File

@ -550,6 +550,16 @@ public class CoeCooperationAPIManager {
return new CoeCooperationRolePermDao().getRolePermListByRole(teamId, roleId);
}
/**
* 获取角色下的模型数据权限
* @param teamId
* @param roleId
* @return
*/
public List<CoeCooperationRolePermModel> queryCooperationRoleDataPermList(String teamId, String roleId) {
return new CoeCooperationRolePermDao().getRolePermByTeamIdAndRoleId(teamId, roleId);
}
/**
* 创建小组下角色的模型数据权限
* @param list

View File

@ -64,6 +64,19 @@ public class CooperationCache extends Cache<String, TeamInfo> {
return getCache().get(teamId);
}
/**
* 获取小组下的全权限文件
* @param teamId
* @return
*/
public static Set<String> getUserInfoVersionIds(String teamId){
TeamInfo teamInfo = CooperationCache.getTeamInfo(teamId);
if (null == teamInfo){
return new HashSet<>();
}
return teamInfo.getVersionIds();
}
/**
* 获取小组下用户权限列表数据
* @param teamId