
# 查询任务报告列表（API名称：queryTaskReportList）
#### 功能介绍
任务报告列表的查询接口。
#### 相关接口
| **接口名称**                                                             | **调用说明**                                                     |
|:---|:---|
| [获取Token](https://support.huaweicloud.com/api-isdp/api_01_0019.html) | 调用该接口获取到Token，再调用其他接口时，需要在请求消息头中添加"Authorization"，其值即为Token。 |
| [新增任务](https://support.huaweicloud.com/api-isdp/api_01_0032.html)    | 需新增任务才能查询对应的任务报告                                             |
   
#### URL
| **请求方式** | **HTTPS地址**                                                           | **服务架构** | **消息体类型**        |
|:---|:---|:---|:---|
| POST     | https://***isdp+域名***/openapi/v1/openQcTaskReport/queryTaskReportList | OpenAPI  | application/json |
   
#### 请求头
| **KEY**       | VALUE                  | 是否必填 | **描述**                                                                                           |
|:---|:---|:---|:---|
| Content-Type  | application/json       | 是    | 无                                                                                                |
| Authorization | bearer ${access_token} | 是    | bearer +" "+[5.2.1](https://support.huaweicloud.com/api-isdp/api_01_0019.html)中获取的access_token的值 |
   
#### 请求参数
| **参数**                                | **类型** | **是否必填** | **描述**   |
|:---|:---|:---|:---|
| page                                  | Object | 否        | 分页信息     |
| page.start                            | int    | 否        | 起始位置     |
| page.count                            | int    | 否        | 条数       |
| taskReport                            | Object | 否        | 报告信息     |
| taskReport .reportName                | String | 否        | 报告名称     |
| taskReport .reportCode                | String | 否        | 报告编号     |
| taskReport .locationId                | long   | 否        | 区域id     |
| taskReport .locationName              | String | 否        | 区域名称     |
| taskReport .countryId                 | long   | 否        | 国家id     |
| taskReport .provinceId                | long   | 否        | 省份id     |
| taskReport .cityId                    | long   | 否        | 城市id     |
| taskReport .sceneTaskId               | long   | 否        | 任务id     |
| taskReport .adminOrganizationCodeList | list   | 否        | 组织单元编码集合 |
| taskReport .administrativeRegion      | String | 否        | 行政区域     |
| filter                                | Object | 否        | 过滤条件     |
   
filter中object对象参数说明
| 参数           | 类型     | 是否必填 | 描述                                     |
|:---|:---|:---|:---|
| status       | Object | 否    | 报告生成状态                                 |
| status.type  | String | 否    | enum(固定值)                              |
| status.value | list   | 否    | 状态值 示例\[0\] 0:待创建 1:创建中 2:创建成功 3: 创建失败 |
   
#### 响应参数
| **参数**       | **类型**     | **描述** |
|:---|:---|:---|
| stateCode    | String     | 响应编码。  |
| errorMessage | String     | 错误信息。  |
| result       | Object\[\] | 响应数据。  |
   
result中data对象参数说明：
| **参数**                | **类型**   | **描述**         |
|:---|:---|:---|
| id                    | Long     | 报告id           |
| adminOrganizationCode | String   | 组织编码           |
| adminOrganizationName | String   | 组织名称           |
| administrativeRegion  | String   | 行政区域           |
| city                  | String   | 城市             |
| cityId                | Long     | 城市id           |
| country               | String   | 国家             |
| countryId             | Long     | 国家id           |
| province              | String   | 省              |
| provinceId            | Long     | 省id            |
| fileId                | Long     | 文件id           |
| deliveryScene         | String   | 交付场景           |
| isAuto                | int      | 是否自动生成 1-是，0为否 |
| isNew                 | int      | 是否最新           |
| locationId            | String   | 作业对象id         |
| locationName          | String   | 作业对象名称         |
| locationType          | String   | 作业对象类型         |
| productType           | String   | 产品类别           |
| projectName           | String   | 项目名称           |
| projectNo             | String   | 项目编码           |
| qcSceneTaskId         | Long     | 任务id           |
| qcTaskName            | String   | 检查单名称          |
| reportCode            | String   | 报告编码           |
| reportDoneDate        | Datetime | 报告生成日期         |
| reportDoneTimestamp   | Long     | 报告生成时间戳        |
| reportName            | String   | 报告名称           |
| reportProgress        | String   | 报告生成进度         |
| reportTemplateName    | String   | 报告模板名称         |
| reportVersion         | String   | 版本号            |
| sceneName             | String   | 场景名称           |
| sceneTaskId           | Long     | 任务id           |
| sceneTaskName         | String   | 任务名称           |
| serviceType           | String   | 业务类型           |
| status                | int      | 报告状态           |
| taskId                | Long     | 检查单id          |
| taskName              | String   | 检查单名称          |
| taskStatus            | int      | 任务审批状态         |
| tempName              | String   | 采集模板名称         |
| tempVersion           | String   | 报告版本号          |
| templateId            | Long     | 采集模板id         |
| templateType          | int      | 业务单类型          |
| ticketCode            | String   | 许可拜纳姆          |
| ticketId              | Long     | 许可id           |
| ticketName            | String   | 许可名称           |
   
#### 请求示例
```
{
    "filter": {},
    "page": {
        "start": 0,
        "count": 1
    },
    "taskReport": {
        "reportName": "",
        "reportCode": "",
        "locationId": "",
        "locationName": "",
        "countryId": "",
        "provinceId": "",
        "cityId": "",
        "adminOrganizationCodeList": [],
        "administrativeRegion": "",
        "sceneTaskId": "3240932"
    }
}
```
#### 响应示例
```
{
    "data": [
        {
            "reportDoneDate": "2023-03-16T15:05:32",
            "tempVersion": null,
            "tempName": null,
            "reportName": "级联输出项1_报告test_0077.xlsx",
            "taskStatus": null,
            "reportTemplateName": "0318",
            "reportVersion": "1.0",
            "locationId": null,
            "locationName": null,
            "errorMessage": "success",
            "reportProgress": "100",
            "reportCode": "REPORT-202303160263",
            "serviceType": null,
            "deliveryScene": null,
            "productType": null,
            "locationType": null,
            "administrativeRegion": null,
            "createName": "lyl10改",
            "lastUpdateName": "lyl10改",
            "appName": "isdp-qc-report-server",
            "entityName": "taskReport",
            "projectNo": "",
            "city": null,
            "country": null,
            "province": null,
            "id": 126967,
            "taskId": null,
            "qcTaskName": null,
            "fileId": 7488130,
            "tenantId": 886,
            "createdBy": 153169,
            "lastUpdatedBy": 153169,
            "templateId": 117045417795,
            "lastUpdateTimestamp": 1678950331891,
            "creationTimestamp": 1678950330263,
            "reportDoneTimestamp": 1678950330263,
            "cityId": null,
            "countryId": null,
            "provinceId": null,
            "status": 2,
            "isAuto": 1,
            "deleteFlag": 0,
            "isNew": 0,
            "creationDate": "2023-03-16T07:05:30.000+00:00",
            "lastUpdateDate": "2023-03-16T07:05:32.000+00:00",
            "qcSceneTaskId": null,
            "sceneTaskName": "级联输出项1",
            "ticketId": 0,
            "ticketCode": null,
            "ticketName": null,
            "sceneName": null,
            "projectName": "",
            "sceneTaskId": 3240932,
            "taskName": null,
            "templateType": 4,
            "adminOrganizationCode": "833",
            "adminOrganizationName": "中国区11112223333"
        }
    ]
}
```
#### 状态码
状态码请参见[状态码](https://support.huaweicloud.com/api-isdp/api_01_0326.html)。
#### 错误码
错误码请参见[错误码](https://support.huaweicloud.com/api-isdp/api_01_0327.html)。
