From 94abf8774d3fb8adf1e34b905c279fc154372e85 Mon Sep 17 00:00:00 2001 From: xuhaihui <2098865055@qq.com> Date: Mon, 25 Aug 2025 17:57:25 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=AC=BE=E7=94=B3=E8=AF=B7=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E8=BF=87=E6=BB=A4=E9=80=BB=E8=BE=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../form/paymentApplicationListPlugin.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/code/zcdev/zcgj-zcdev-zcdev-fs/src/main/java/zcgj/zcdev/zcdev/fs/plugin/form/paymentApplicationListPlugin.java b/code/zcdev/zcgj-zcdev-zcdev-fs/src/main/java/zcgj/zcdev/zcdev/fs/plugin/form/paymentApplicationListPlugin.java index fd730d2..2c6608e 100644 --- a/code/zcdev/zcgj-zcdev-zcdev-fs/src/main/java/zcgj/zcdev/zcdev/fs/plugin/form/paymentApplicationListPlugin.java +++ b/code/zcdev/zcgj-zcdev-zcdev-fs/src/main/java/zcgj/zcdev/zcdev/fs/plugin/form/paymentApplicationListPlugin.java @@ -82,16 +82,16 @@ public class paymentApplicationListPlugin extends AbstractListPlugin { return; } if ("zcgj_org.id".equals(key)) { - String userId = RequestContext.get().getUserId();//获取当前用户id - boolean superUser = PermissionServiceHelper.isSuperUser(Long.parseLong(userId)); //判断是否为全功能用户 - boolean adminUser = PermissionServiceHelper.isAdminUser(Long.parseLong(userId)); //判断是否管理员用户 - List ids = UserServiceHelper.getOrgsUserJoin(Long.parseLong(userId));//获取用户所有部门id + String userid = RequestContext.get().getUserId();//获取当前用户id + List ids = UserServiceHelper.getOrgsUserJoin(Long.parseLong(userid));//获取用户所有部门id List ids2 = new ArrayList<>(); - if(!superUser && !adminUser){ - HasPermOrgResult userHasPermOrgs = PermissionServiceHelper.getUserHasPermOrgs(Long.parseLong(userId),true); - List hasPermOrgs = userHasPermOrgs.getHasPermOrgs(); - ids2.addAll(hasPermOrgs); - } +// boolean superUser = PermissionServiceHelper.isSuperUser(Long.parseLong(userId)); //判断是否为全功能用户 +// boolean adminUser = PermissionServiceHelper.isAdminUser(Long.parseLong(userId)); //判断是否管理员用户 +// if(!superUser && !adminUser){ +// HasPermOrgResult userHasPermOrgs = PermissionServiceHelper.getUserHasPermOrgs(Long.parseLong(userId),true); +// List hasPermOrgs = userHasPermOrgs.getHasPermOrgs(); +// ids2.addAll(hasPermOrgs); +// } for (Long userMainOrgId : ids) { QFilter[] qFilter = new QFilter[]{new QFilter("id", QCP.equals, userMainOrgId)}; DynamicObject org = BusinessDataServiceHelper.loadSingle("bos_adminorg", qFilter);//行政组织