diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/CoeCooperationAPIManager.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/CoeCooperationAPIManager.java index f67ad5c3..38c283fc 100644 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/CoeCooperationAPIManager.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/CoeCooperationAPIManager.java @@ -550,6 +550,16 @@ public class CoeCooperationAPIManager { return new CoeCooperationRolePermDao().getRolePermListByRole(teamId, roleId); } + /** + * 获取角色下的模型数据权限 + * @param teamId + * @param roleId + * @return + */ + public List queryCooperationRoleDataPermList(String teamId, String roleId) { + return new CoeCooperationRolePermDao().getRolePermByTeamIdAndRoleId(teamId, roleId); + } + /** * 创建小组下角色的模型数据权限 * @param list diff --git a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/cache/CooperationCache.java b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/cache/CooperationCache.java index 06211476..75ceb8d1 100644 --- a/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/cache/CooperationCache.java +++ b/com.actionsoft.apps.coe.pal/src/com/actionsoft/apps/coe/pal/cooperation/cache/CooperationCache.java @@ -64,6 +64,19 @@ public class CooperationCache extends Cache { return getCache().get(teamId); } + /** + * 获取小组下的全权限文件 + * @param teamId + * @return + */ + public static Set getUserInfoVersionIds(String teamId){ + TeamInfo teamInfo = CooperationCache.getTeamInfo(teamId); + if (null == teamInfo){ + return new HashSet<>(); + } + return teamInfo.getVersionIds(); + } + /** * 获取小组下用户权限列表数据 * @param teamId