public class Contract extends Object
| 限定符和类型 | 方法和说明 | ||||
|---|---|---|---|---|---|
CreateContractResp |
create(CreateContractReq req)
新建合同,通过本接口可以为员工创建一份新合同
延迟说明:搜索同步延迟 10s 以内,即:直接创建对象后10s内调用此接口可能查询不到数据。
|
||||
CreateContractResp |
create(CreateContractReq req,
RequestOptions reqOptions)
新建合同,通过本接口可以为员工创建一份新合同
延迟说明:搜索同步延迟 10s 以内,即:直接创建对象后10s内调用此接口可能查询不到数据。
|
||||
DeleteContractResp |
delete(DeleteContractReq req)
删除合同,通过本接口可以删除合同数据,删除后即无法查询到。
|
||||
DeleteContractResp |
delete(DeleteContractReq req,
RequestOptions reqOptions)
删除合同,通过本接口可以删除合同数据,删除后即无法查询到。
|
||||
GetContractResp |
get(GetContractReq req)
查询单个合同,该接口用于根据合同 ID 查询单个合同详细信息,包括合同开始日期、结束日期、公司主体等信息
如需要一次性查询多份合同,请检索[批量查询接口](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/list),更适合分批查询合同列表的场景
;
官网API文档链接:
GetContractRespget(GetContractReq req,
RequestOptions reqOptions)
查询单个合同,该接口用于根据合同 ID 查询单个合同详细信息,包括合同开始日期、结束日期、公司主体等信息
如需要一次性查询多份合同,请检索[批量查询接口](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/corehr-v1/contract/list),更适合分批查询合同列表的场景
;
官网API文档链接:
ListContractResplist(ListContractReq req)
批量查询合同,通过接口可以批量查询合同列表信息,目前暂不支持其他筛选条件且一次查询最多支持50条数据。
| ||||
ListContractResp |
list(ListContractReq req,
RequestOptions reqOptions)
批量查询合同,通过接口可以批量查询合同列表信息,目前暂不支持其他筛选条件且一次查询最多支持50条数据。
|
||||
PatchContractResp |
patch(PatchContractReq req)
更新合同,通过该接口可以更新员工合同相关信息,没有修改的参数会保留原值
官网API文档链接:
PatchContractResppatch(PatchContractReq req,
RequestOptions reqOptions)
更新合同,通过该接口可以更新员工合同相关信息,没有修改的参数会保留原值
官网API文档链接:
从类继承的方法 java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Copyright © 2026. All rights reserved. |