---
title: "7.开放二开API"
docId: "375370321026351104"
source: "https://weapp.eteams.cn/build/techdoc/wdoc/index.html#/public/repository/91f5067f-775e-48f4-93a2-ce84ca0b9c2e/doc/375370321026351104"
---
### 根据Id查找所有上级部门 com.weaver.common.hrm.service.HrmCommonDepartmentService#queryAll(java.lang.String)

入参说明：

| 参数 | 类型 | 说明 |
| --- | --- | --- |
| tenantKey | String | 租户key |

出参说明：见参数对象说明 Simplepartment

|  |  |  |
| --- | --- | --- |

### 查询租户所有人：com.weaver.common.hrm.service.HrmCommonEmployeeService#getAllEmployee(java.lang.String)

入参说明：

| 参数 | 类型 | 说明 |
| --- | --- | --- |
| tenantKey | String | 租户key |

出参说明：List<Long>

| 类型 | 说明 |
| --- | --- |
| List<Long> | 人员id列表 |

### 根据人员Id查找所有上级 com.weaver.common.hrm.service.HrmCommonEmployeeService#getAllManager(java.lang.String, java.lang.Long)

| 参数 | 类型 | 说明 |
| --- | --- | --- |
| tenantKey | String | 租户key |
| id | Long | 人员id |

出参说明：List<Long>

| 类型 | 说明 |
| --- | --- |
| List<Long> | 上级人员id列表 |

### 条件查询人员关系com.weaver.common.hrm.service.HrmCommonEmployeeService#queryEmpRelationIdsByCondition(com.weaver.common.hrm.domain.organization.HrmEmpRelationCondition)

com.weaver.common.hrm.service.HrmCommonPositionService#getAllPositions(java.lang.String)

com.weaver.common.hrm.service.HrmCommonDepartmentService#pageOrgsByCondidtion

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

com.weaver.common.hrm.util.browsercondition.HrmBrowserUtil#buildOrgPathName

com.weaver.common.hrm.util.browsercondition.HrmBrowserUtil#orderOrgPath

com.weaver.common.hrm.service.HrmCommonDepartmentService#findRelationOrgIdByCondition

com.weaver.common.hrm.service.HrmCommonDepartmentService#countReationOrgMapByCondition

com.weaver.common.hrm.service.HrmCommonDepartmentService#findRelationOrgMapByCondition

com.weaver.common.hrm.service.HrmCommonDepartmentService#checkRelationOrgMapByCondition

com.weaver.common.hrm.service.extra.HrmCommonExtraOrganizationService#getAllExtraOrgInfos

com.weaver.common.hrm.service.extra.HrmCommonExtraOrganizationService#queryByCondition

com.weaver.common.hrm.manage.employee.extraorg.HrmComEmployeeExtraOrgHandler#findEmployePostionInCludeExraOrg

com.weaver.common.hrm.manage.employee.extraorg.HrmComEmployeeExtraOrgHandler#listEmpAndExtraInfo

com.weaver.common.hrm.manage.employee.extraorg.HrmComEmployeeExtraOrgHandler#listEmpAndExtraComInfo

com.weaver.common.hrm.remote.HrmRemoteEmployeeService#getById

### 参数对象说明：

#### SimpleDepartment

| 参数 | 类型 | 说明 |
| --- | --- | --- |
| name | String | 部门名称 |
| datarank | Integer | 层级 |
| createDate | Date | 创建时间 |
| isDelete | Boolean | 是否删除(true删除) |
| code | String | 编号 |
| type | String | 类型(department部门，subcompany分部) |
| parentId | Long | 上级 |
| virtualId | Long | 维度id |
| subCompanyId | Long | 所属分部id |
| tenantKey | String | 租户key |
| id | Long |  |
|  |  |  |
|  |  |  |
|  |  |  |
