From 5b93fc8fa44715cabdef6f6c99f177c20b4c857b Mon Sep 17 00:00:00 2001 From: anhc <3442943606@qq.com> Date: Mon, 4 Jul 2022 17:43:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=BB=84=E7=94=A8=E6=88=B7=E6=9D=83?= =?UTF-8?q?=E9=99=90=E7=BC=93=E5=AD=98=E6=9B=B4=E6=96=B0=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=B0=8F=E7=BB=84=E4=B8=8B=E6=9D=83=E9=99=90=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=96=B9=E6=B3=95=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=A7=92=E8=89=B2?= =?UTF-8?q?=E4=B8=8B=E6=A8=A1=E5=9E=8B=E6=95=B0=E6=8D=AE=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pal/cooperation/CoeCooperationAPIManager.java | 10 ++++++++++ .../coe/pal/cooperation/cache/CooperationCache.java | 13 +++++++++++++ 2 files changed, 23 insertions(+) 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