文档首页> ISDP> API参考> API接口> 任务管理> 任务进展管理> 导入导出任务查询(API名称:findPageExcelRecordModelListById)
更新时间:2024-02-19 GMT+08:00
分享

导入导出任务查询(API名称:findPageExcelRecordModelListById)

功能介绍

导入导出任务查询

相关接口

接口名称

调用说明

获取Token

调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。

URL

请求方式

HTTPS地址

服务架构

消息体类型

POST

https://isdp+域名/openapi/v1/excelRecord/findPageExcelRecordModelListById

OpenAPI

application/json

请求头

KEY

VALUE

是否必填

描述

Content-Type

application/json

Authorization

bearer ${access_token}

bearer +“ ”+5.2.1中获取的access_token的值

请求参数

参数

类型

是否必填

描述

po.taskId

Array

任务Id数组,如[123,456]

po.fileName

String

文件名称

po.status

String

任务状态(0:待处理,1:处理中,2:处理完成,3:异常结束)

po.taskType

String

任务类型(import、export)

po.startTime

String

起始时间

po.endTime

String

结束时间

page.start

Integer

分页查询起始位置

page.count

Interger

分页查询每页总数

响应参数

参数

类型

描述

pos

Integer

查询数据的起始位置

total_count

Integer

查询结果当前页数据总数

totalCount

Integer

查询结果数据总数

data

Object

响应结果内容,包含所需的字段

data出参:

参数

类型

描述

taskId

String

任务id

taskName

String

任务名称

taskType

String

任务类型

progressRate

String

当前进度

fileName

String

文件名称

moduleName

String

模块名称

status

Integer

状态

fileType

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

出错消息提示

请求示例

{
    "page.count": 30,
    "page.start": 0,
    "po.taskId": [
        777343
    ],
    "po.endTime": "2023-07-11 00:00:00",
    "po.fileName": null,
    "po.startTime": "2023-05-31 00:00:00",
    "po.status": "2",
    "po.taskType": "export"
}

响应示例

  
{
    "data": [
        {
            "taskId": 777343,
            "taskName": "UserRoleModel.export",
            "taskType": "export",
            "progressRate": 100,
            "fileName": "UserAuthorization_777343.xlsx",
            "moduleName": "用户授权导出",
            "status": 2,
            "fileType": "xlsx",
            "syncFlag": 1,
            "docId": "7595232",
            "startTime": "2023-06-21T07:42:04.000+00:00",
            "endTime": "2023-06-21T07:42:05.000+00:00",
            "fileSize": 4139,
            "records": 2,
            "serviceId": null,
            "totalRows": 2,
            "blankRows": 0,
            "successRows": 2,
            "errInfo": null
        }
    ],
    "pos": 0,
    "total_count": 1,
    "entityName": null,
    "totalCount": 1
}
分享:

    相关文档

    相关产品