Compare commits

..

No commits in common. "94abf8774d3fb8adf1e34b905c279fc154372e85" and "094c55ad31076fbb726736c3afbdb9ce52740885" have entirely different histories.

1 changed files with 0 additions and 9 deletions

View File

@ -9,9 +9,7 @@ import kd.bos.list.ListShowParameter;
import kd.bos.list.plugin.AbstractListPlugin;
import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter;
import kd.bos.permission.api.HasPermOrgResult;
import kd.bos.servicehelper.BusinessDataServiceHelper;
import kd.bos.servicehelper.permission.PermissionServiceHelper;
import kd.bos.servicehelper.user.UserServiceHelper;
import java.util.ArrayList;
@ -85,13 +83,6 @@ public class paymentApplicationListPlugin extends AbstractListPlugin {
String userid = RequestContext.get().getUserId();//获取当前用户id
List<Long> ids = UserServiceHelper.getOrgsUserJoin(Long.parseLong(userid));//获取用户所有部门id
List<Long> ids2 = new ArrayList<>();
// 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<Long> 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);//行政组织