人员信息导出(API名称:exportPersonModel)
功能介绍
用于人员信息导出。
相关接口
| 接口名称 | 调用说明 |
|---|---|
| 调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
URL
| 请求方式 | HTTPS地址 | 服务架构 | 消息体类型 |
|---|---|---|---|
| POST | https://isdp+域名/openapi/v1/person/exportPersonModel | OpenAPI | application/json |
请求头
| KEY | VALUE | 是否必填 | 描述 |
|---|---|---|---|
| Content-Type | application/json | 是 | 无 |
| Authorization | bearer ${access_token} | 是 | bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| exportName | String | 是 | 导出场景名称,如ChengTiePersonModel.export |
| idList | Array | 否 | 人员id数组,id个数超过200 |
| personStatus | String | 否 | 人员状态,OpenAccount;Freeze;Cancel 多个值用分号分隔,分别表示已开户,冻结,注销 |
| createdBy | Long | 否 | 创建人id |
| orgIncludeChild | Boolean | 否 | 组织是否包含子级(包含本级及其下级组织查询模式) |
| profilePictureStatus | String | 否 | 证件照状态 |
| personName | String | 否 | 人员名称(模糊查询) |
| personCode | String | 否 | 人员编码(模糊查询) |
| personStatus | String | 否 | 人员状态(多个状态以分号间隔) |
| orgIdList | List<Long> | 否 | 组织id列表(个数不能超过200,包含本级及其下级组织查询模式,只支持选择一个组织单元) |
| positionCode | String | 否 | 岗位编码 |
响应参数
| 参数 | 类型 | 描述 |
|---|---|---|
| StateCode | String | 状态码,是否导入成功 |
| result | Object | 响应结果内容,包含所需的字段 |
| errorMessage | String | 出错信息 |
data出参:
| 参数 | 类型 | 描述 |
|---|---|---|
| taskId | String | 任务id |
| taskName | String | 任务名称 |
| taskType | String | 任务类型 |
| progressRate | String | 当前进度 |
| fileName | String | 文件名称 |
| moduleName | String | 模块名称 |
| status | Integer | 状态 |
| errorFileSuffix | String | 错误文件后缀 |
| syncFlag | String | 同步异步标志 |
| docId | String | 文档id |
| startTime | String | 任务开始时间 |
| endTime | String | 任务结束时间 |
| fileSize | Integer | 文件大小 |
| records | Integer | 文档数据条数 |
| serviceId | Integer | 服务Id |
| totalRows | Integer | 文档记录总数目 |
| blankRows | Integer | 记录为空的数目 |
| successRows | Integer | 记录处理成功数目 |
| errInfo | String | 出错消息提示 |
| param | String | 文件参数 |
请求示例
{
"personStatus":"NoAccountOpened;OpeningAccount;OpenAccount;Freeze",
"idList":[235378],
"exportName":"ChengTiePersonModel.export"
} 响应示例
{
"taskId": 5047646,
"taskName": "ChengTiePersonModel.export",
"progressRate": "0",
"fileName": "personModelExport",
"taskType": "export",
"errorFileSuffix": null,
"moduleName": "人员信息导出",
"status": 0,
"docId": null,
"fileSize": 0,
"syncFlag": "1",
"startTime": null,
"endTime": null,
"records": 0,
"blankRows": 0,
"param": "{\"personStatus\":\"NoAccountOpened;OpeningAccount;OpenAccount;Freeze\",\"idList\":[235378],\"exportName\":\"ChengTiePersonModel.export\",\"moduleName\":\"人员信息导出\"}",
"errInfo": null,
"createdBy": null,
"totalRows": 0,
"successRows": 0,
"serviceId": null
}