public static class QueryTimelineDepartmentReqBody.Builder extends Object
| 构造器和说明 |
|---|
Builder() |
| 限定符和类型 | 方法和说明 |
|---|---|
QueryTimelineDepartmentReqBody |
build() |
QueryTimelineDepartmentReqBody.Builder |
departmentIds(String[] departmentIds)
部门 ID 列表;-
可通过[批量查询部门V2](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/batch_get)
或者[搜索部门信息](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/corehr-v2/department/search)
获取详情
示例值:
|
QueryTimelineDepartmentReqBody.Builder |
effectiveDate(String effectiveDate)
版本生效日期;- 填写格式:YYYY-MM-DD;- 系统默认为填写日期当天的 00:00:00 生效 ;- 该接口只支持到最小单位为日;-
日期范围要求:1900-01-01~9999-12-31
示例值:2020-01-01
|
QueryTimelineDepartmentReqBody.Builder |
fields(String[] fields)
需要返回的字段列表,字段可填写的列表如下:;- department_name:部门名称;- sub_type:部门子类型;- tree_order:树形排序;-
list_order:列表排序;- is_root:是否根部门;- is_confidential:是否保密;- staffing_model:岗职务模式;-
cost_center_id:部门默认成本中心;- code:部门编码;- active:是否启用;- parent_department_id:上级部门ID;-
manager:负责人;- description:部门描述;- effective_date:当前版本生效日期;- expiration_date:当前版本失效日期;-
custom_fields(自定义字段需传入具体的"custom_api_name"详细见[获取自定义字段列表](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/custom_field/query)
,比如:"shifouleixing_7795__c)
示例值:
|
public QueryTimelineDepartmentReqBody.Builder departmentIds(String[] departmentIds)
示例值:
departmentIds - public QueryTimelineDepartmentReqBody.Builder effectiveDate(String effectiveDate)
示例值:2020-01-01
effectiveDate - public QueryTimelineDepartmentReqBody.Builder fields(String[] fields)
示例值:
fields - public QueryTimelineDepartmentReqBody build()
Copyright © 2026. All rights reserved.