| | |
| | | private CodeBasicSecMapper codeBasicSecMapper; |
| | | |
| | | /** |
| | | * 自定义并发ForkJoinPool |
| | | */ |
| | | private static final ForkJoinPool customForkJoinPool = new ForkJoinPool(Runtime.getRuntime().availableProcessors()-1); |
| | | |
| | | /** |
| | | * 上级节点的属性名称 |
| | | */ |
| | | public static final String PARENT_FIELD_NAME = "parentCodeClassifyOid"; |
| | |
| | | // 非超管过滤未授权的分类 |
| | | if(!VciBaseUtil.checkAdminTenant()){ |
| | | // 那些分类具备查看权限 |
| | | R<List<String>> viewClassByRoleIds = sysClient.getViewClassByRoleIds(Arrays.asList(AuthUtil.getUser().getRoleId().split(",")),treeQueryObject.getConditionMap().getOrDefault("authType","classify_auth"),treeQueryObject.getConditionMap().getOrDefault("menuCode","classify_view")); |
| | | R<List<String>> viewClassByRoleIds = sysClient.getViewClassByRoleIds( |
| | | Arrays.asList(AuthUtil.getUser().getRoleId().split(",")), |
| | | treeQueryObject.getConditionMap().getOrDefault("authType","classify_auth"), |
| | | treeQueryObject.getConditionMap().getOrDefault("buttonCode","classify_view"), |
| | | treeQueryObject.getConditionMap().getOrDefault("menuCode","classifyTree") |
| | | ); |
| | | // 请求失败或者请求得到的具备查看权限的分类id集合为空 |
| | | if(!viewClassByRoleIds.isSuccess() && viewClassByRoleIds.getData().isEmpty()){ |
| | | throw new ServiceException("主数据查看权限未配置,或配置有误!"); |