employee:detail| 名称 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| corpId | String | 是 | 企业ID |
| empId | String | 是 | 员工ID |
| effectDate | String | 否 | 生效日期(格式:yyyy-MM-dd,未传则使用当前日期) |
| 名称 | 类型 | 描述 |
|---|---|---|
| success | Boolean | 接口是否响应成功 |
| errorCode | String | 错误码(成功时为null) |
| errorMsg | String | 错误提示原因(成功时为null) |
| data | Array of Object | 返回结果(员工详情列表) |
说明: data为数组,每个元素是一个员工详情对象。字段分为两种类型:显示值字段(如 gender):直接返回中文显示文本选项源字段(如 gender_source):返回选项数组,包含label、value等结构化信息下拉/选项类字段会同时返回显示值和选项源两个字段。
| 字段名 | 类型 | 描述 |
|---|---|---|
| id | String | 记录ID |
| empId | String | 员工ID |
| corpId | String | 企业ID |
| name | String | 员工姓名 |
| gender | String | 性别(显示值) |
| gender_source | Array of Object | 性别(选项数组) |
| dateOfBirth | String | 出生日期(格式:yyyy-MM-dd) |
| age | String | 年龄 |
| String | 邮箱 | |
| mobileNumber | String | 手机号 |
| idType | String | 证件类型(显示值) |
| idType_source | Array of Object | 证件类型(选项数组) |
| idNumber | String | 证件号码 |
| idName | String | 证件姓名 |
| politicalStatus | String | 政治面貌(显示值) |
| politicalStatus_source | Array of Object | 政治面貌(选项数组) |
| 字段名 | 类型 | 描述 |
|---|---|---|
| mainDepartment | String | 主部门(显示值) |
| mainDepartment_source | Array of Object | 主部门(选项数组) |
| jobTitle | String | 职位(显示值) |
| jobTitle_source | Array of Object | 职位(选项数组) |
| jobLevel | String | 职级(显示值) |
| jobLevel_source | Array of Object | 职级(选项数组) |
| jobDuty | String | 职务(显示值) |
| jobDuty_source | Array of Object | 职务(选项数组) |
| jobSequence | String | 职序(显示值) |
| jobSequence_source | Array of Object | 职序(选项数组) |
| jobGrade | String | 职等(显示值) |
| jobGrade_source | Array of Object | 职等(选项数组) |
| manager | String | 直属上级(显示值) |
| manager_source | Array of Object | 直属上级(选项数组) |
| orgManager | String | 组织负责人(显示值) |
| orgManager_source | Array of Object | 组织负责人(选项数组) |
| workLocation | String | 工作地点(显示值) |
| workLocation_source | Array of Object | 工作地点(选项数组) |
| 字段名 | 类型 | 描述 |
|---|---|---|
| employeeStatus | String | 员工状态(显示值) |
| employeeStatus_source | Array of Object | 员工状态(选项数组) |
| employeeType | String | 员工类型(显示值) |
| employeeType_source | Array of Object | 员工类型(选项数组) |
| employeeNumber | String | 工号 |
| onBoardingDate | String | 入职日期(格式:yyyy-MM-dd) |
| probationDate | String | 转正日期(格式:yyyy-MM-dd) |
| companySeniorityAge | String | 司龄(年) |
| 字段名 | 类型 | 描述 |
|---|---|---|
| lastDayOfWork | String | 离职日期(格式:yyyy-MM-dd) |
| offBoardingType | String | 离职类型(显示值) |
| offBoardingType_source | Array of Object | 离职类型(选项数组) |
| reasonForOffBoarding | String | 离职原因(显示值) |
| reasonForOffBoarding_source | Array of Object | 离职原因(选项数组) |
| remarksForOffBoarding | String | 离职 备注 |
| 字段名 | 类型 | 描述 |
|---|---|---|
| effectDate | String | 生效日期(格式:yyyy-MM-dd HH:mm:ss) |
| effectVersion | Integer | 生效版本号 |
| invalidDate | String | 失效日期(格式:yyyy-MM-dd HH:mm:ss) |
| operate | String | 所属操作标识 |
| operateType | String | 操作类型标识 |
| delete | String | 删除状态(normal-正常) |
| gmtCreate | String | 创建时间(格式:yyyy-MM-dd HH:mm:ss) |
| gmtModified | String | 修改时间(格式:yyyy-MM-dd HH:mm:ss) |
| approvalInfos | Array | 审批信息列表 |
| 字段名 | 类型 | 描述 |
|---|---|---|
| field_xxx | String | 自定义字段(文本类型直接返回字符串值) |
| field_xxx_source | Array of Object | 自定义字段(下拉类型返回选项数组) |
说明:以 field_开头的字段为企业自定义字段,字段名格式为field_{fieldId},是否存在及具体名称取决于企业配置。
gender_source、mainDepartment_source 等选项数组中每个元素的结构:| 字段名 | 类型 | 描述 |
|---|---|---|
| label | String | 选项显示名称 |
| value | String | 选项值(用于数据存储和接口传参) |
| order | Integer | 排序号(可为null) |
| status | String | 选项状态(normal-正常,stop-停用,可为null) |
| markValue | String | 标记值(可为null) |
| orgLabel | String | 组织标签(可为null) |
| defaultSelected | Boolean | 是否默认选中(可为null) |
| value | label |
|---|---|
| probation | 试用 |
| formal | 正式 |
| working | 在职 |
| quitted | 离职 |
| value | label |
|---|---|
| regular | 全职 |
| part_time | 兼职 |
| internship | 实习 |
| dispatching | 劳务派遣 |
| restart | 退休返聘 |
| epiboly | 劳务外包 |
| value | label |
|---|---|
| male | 男 |
| female | 女 |
| value | label |
|---|---|
| idCard | 居民身份证 |
| passport | 护照 |
| others | 其他 |
| value | label |
|---|---|
| normal | 正常 |
| deleted | 已删除 |
| value | label |
|---|---|
| activeOffBoarding | 主动离职 |
| passiveOffBoarding | 被动离职 |
| value | label |
|---|---|
| 1 | 家庭原因 |
| 2 | 个人原因 |
| 3 | 薪资福利 |
| 4 | 工 作环境 |
| 5 | 工作时间 |
| 6 | 发展原因 |
| 7 | 合同到期不续签 |
| 8 | 其他 |
| 9 | 协议解除 |
| 10 | 无法胜任工作 |
| 11 | 经济型裁员 |
| 12 | 严重违法违纪 |
{
"data": [
{
"id": "64be1a1328165f71a728ef5c",
"empId": "emp_b38070ea769349ed87720c0ad307791c",
"corpId": "ding4c7c311a701851ac35c2f4657eb6378f",
"name": "云兴",
"gender": "男",
"gender_source": [
{
"label": "男",
"value": "male",
"order": 0,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"dateOfBirth": "2025-10-01",
"age": "0",
"email": "",
"mobileNumber": "18357154439",
"idType": "其他",
"idType_source": [
{
"label": "其他",
"value": "others",
"order": 3,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"idNumber": "DS41428729",
"idName": "TEST Lara Jerde",
"politicalStatus": "群众",
"politicalStatus_source": [
{
"label": "群众",
"value": "masses",
"order": 0,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"mainDepartment": "设计一部",
"mainDepartment_source": [
{
"label": "设计一部",
"value": "org_b7ac87e021524d48a7c1c1203477e475",
"order": null,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"jobTitle": "设计师",
"jobTitle_source": [
{
"label": "设计师",
"value": "68f1ad14893bb86ea84aa70b",
"order": null,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"jobLevel": "SY职级",
"jobLevel_source": [
{
"label": "SY职级",
"value": "68ac0ef438e6e2371c664f26",
"order": null,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"jobDuty": "后端工程师",
"jobDuty_source": [
{
"label": "后端工程师",
"value": "68f1ab68893bb86ea84aa703",
"order": null,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"jobSequence": "SY序列",
"jobSequence_source": [
{
"label": "SY序列",
"value": "68ac0eca38e6e2371c664f23",
"order": null,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"jobGrade": "sw4",
"jobGrade_source": [
{
"label": "sw4",
"value": "6464824b4076a271de9dbb97",
"order": null,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"manager": "pxl测试",
"manager_source": [
{
"label": "pxl测试",
"value": "emp_3ea6ceaa0fa8419cab81d78d52cf7ae5",
"order": null,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"orgManager": "",
"orgManager_source": [
],
"workLocation": "杭州(已停用)",
"workLocation_source": [
{
"label": "杭州(已停用)",
"value": "selection_09eac43a7b02444b9402c9369de5567a",
"order": 56,
"status": "stop",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"employeeStatus": "正式",
"employeeStatus_source": [
{
"label": "正式",
"value": "formal",
"order": 1,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"employeeType": "全职",
"employeeType_source": [
{
"label": "全职",
"value": "regular",
"order": 0,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"employeeNumber": "sy_-00015",
"onBoardingDate": "1980-01-01",
"probationDate": "2024-04-04",
"companySeniorityAge": "46",
"effectDate": "2025-05-23 00:00:00",
"effectVersion": 1,
"invalidDate": "2028-10-04 00:00:00",
"operate": "other",
"operateType": "orgStructureChange",
"delete": "normal",
"gmtCreate": "2023-07-24 14:28:24",
"gmtModified": "2026-02-27 17:50:53",
"approvalInfos": [
],
"field_emp_stri_019": "er6899",
"field_emp_stri_026": "4455",
"lastDayOfWork": "2026-10-09",
"offBoardingType": "主动离职",
"offBoardingType_source": [
{
"label": "主动离职",
"value": "activeOffBoarding",
"order": null,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"reasonForOffBoarding": "个人原因",
"reasonForOffBoarding_source": [
{
"label": "个人原因",
"value": "2",
"order": null,
"status": "normal",
"markValue": null,
"orgLabel": null,
"defaultSelected": null
}
],
"remarksForOffBoarding": "个人发展规划"
}
],
"success": true,
"errorCode": null,
"errorMsg": null
}gender)和选项源(如 gender_source),显示值为中文文本,选项源包含完整的 value/label 结构field_ 开头的字段为企业自定义字段,字段名格式为 field_{fieldId},是否存在及具体名称取决于企业配置"",选项源返回空数组 []status 为 stop 表示该选项已停用,显示值中会标注"(已停用)"effectDate 未传时默认使用当前日期,返回该日期下生效的员工数据