---
title: "2.组织-根据全路径查询组织"
docId: "194965499916845056"
source: "https://weapp.eteams.cn/build/techdoc/wdoc/index.html#/public/repository/91f5067f-775e-48f4-93a2-ce84ca0b9c2e/doc/194965499916845056"
---
> 引入weaver-common-hrm ; 静态帮助方法

```java
com.weaver.common.hrm.util.browsercondition.HrmBrowserUtil#findOrgIdByAllPath
```

- 入参说明
  
  | 参数 | 类型 | 说明 |
  | --- | --- | --- |
  | allPathList | List<String> | 全路径数据 |
  | split | string | 分隔符 |
  | tenantKey | string | 租户 |
- 返回参数说明（Map<String, WeaResult<HrmDepartment>>）
  
  | 参数 | 类型 | 说明 |
  | --- | --- | --- |
  | key | string | 全路径 |
  | value | WeaResult | 返回数据，true:表示成功，从data中可以获取部门对象，false表示失败，从msg中获取原因 |
- 示例
  
    - 请求
      
      ```java
      HrmBrowserUtil.findOrgIdByAllPath(["泛微>泛微天津>泛微天津>测试x315","泛微天津>泛微天津>测试x315","泛微天津>测试x315"],">", "t31sbaxrmk")
      ```
    - 返回
      
      ```json
      {
              "泛微>泛微天津>泛微天津>测试x315": {
                  "code": 200,
                  "msg": "接口返回成功",
                  "status": true,
                  "data": {
                      "id": 982891252714012672,
                      "disporder": 999999,
                      "name": "测试x315",
                      "parent": 982891197047209984,
                      "datarank": 4,
                      "tenantKey": "t31sbaxrmk",
                      "creator": 922786458314588163,
                      "isDelete": false,
                      "status": true,
                      "type": "department",
                      "deleteType": 0,
                      "virtualid": 1,
                      "updateTime": 1712047203000,
                      "createTime": 1712047203000,
                      "hasSub": false,
                      "invisible": false
                  },
                  "fail": false
              },
              "泛微天津>泛微天津>测试x315": {
                  "code": 200,
                  "msg": "接口返回成功",
                  "status": true,
                  "data": {
                      "id": 982891252714012672,
                      "disporder": 999999,
                      "name": "测试x315",
                      "parent": 982891197047209984,
                      "datarank": 4,
                      "tenantKey": "t31sbaxrmk",
                      "creator": 922786458314588163,
                      "isDelete": false,
                      "status": true,
                      "type": "department",
                      "deleteType": 0,
                      "virtualid": 1,
                      "updateTime": 1712047203000,
                      "createTime": 1712047203000,
                      "hasSub": false,
                      "invisible": false
                  },
                  "fail": false
              },
              "泛微天津>测试x315": {
                  "code": 500,
                  "msg": "泛微天津>测试x315 find err:;last size:[957352187651063813, 982891252714012672]",
                  "status": false,
                  "fail": true
              }
          }
      ```
