文档生成(API名称:openQcTaskReport/addTaskReports)
功能介绍
可生成任务报告文档、工作票的文档和检查单的文档。
相关接口
接口名称 | 调用说明 |
|---|---|
调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
URL
请求方式 | HTTPS地址 | 服务架构 | 消息体类型 |
|---|---|---|---|
POST | https://isdp+域名/openapi/v1/openQcTaskReport/addTaskReports | OpenAPI | application/json |
请求头
KEY | VALUE | 是否必填 | 描述 |
|---|---|---|---|
Content-Type | application/json | 是 | 无 |
Authorization | bearer ${access_token} | 是 | bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
models | List | 是 | 模板模型 |
models参数
参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
adminOrganization | String | 是 | 行政组织编码 |
reportName | String | 是 | 报告名称 |
taskId | Long | 否 | 检查单Id |
sceneTaskId | Long | 否 | 任务ID |
status | Integer | 否 | 任务审批状态 |
templateId | Long | 是 | doc模板Id |
templateName | String | 否 | 报告模板名称 |
ticketId | Long | 否 | 工作票ID |
isGenerateDoc | Integer | 否 | 是否自动生成 1-是,0为否 |
响应参数
参数 | 类型 | 描述 |
|---|---|---|
stateCode | String | 响应状态码:
|
errorMessage | String | 响应描述 |
result | Object | 响应结果内容data、分页数据 |
Result:
参数 | 类型 | 描述 |
|---|---|---|
reportVersion | String | 报告版本号 |
reportName | String | 报告名称 |
adminOrganizationName | String | 行政组织名称 |
orgPath | String | 组织路径 |
lastUpdateDate | Date | 最近更新时间 |
templateId | Long | doc模板Id |
deleteFlag | Integer | 删除标识 |
lastUpdateTimestamp | Long | 最近更新时间戳 |
entityName | String | 实体名称 |
reportTemplateName | String | 报告模板名称 |
reportCode | String | 报告编码 |
creationTimestamp | Long | 创建时间戳 |
isAuto | Integer | 自动生成 1为是 0为否 |
id | Long | 主键ID |
taskStatus | Integer | 任务审批状态 |
reportDoneTimestamp | 报告完成时间 | 报告完成时间 |
lastUpdatedBy | Long | 最近更新人 |
appName | String | 应用名称 |
sceneName | String | 许可场景 |
adminOrganizationCode | String | 行政组织编码 |
isNew | Integer | 是否最新 |
creationDate | Date | 创建时间 |
version | Double | 版本 |
sceneTaskId | Long | 场景任务ID |
templateName | String | 报告模板名称 |
createdBy | Long | 创建人 |
affectedRows | Integer | 影响行数 |
tenantId | Long | 租户Id |
adminOrganization | String | 行政组织编码 |
lastUpdateName | String | 最近更新人名称 |
taskName | String | 父任务名称 |
createName | String | 创建人名称 |
status | Integer | 报告状态 |
请求示例
{
"models": [
{
"adminOrganization": "830",
"reportName": "7570.xlsx",
"sceneTaskId": 3312207,
"templateId": 117045418713,
"templateName": "报告模板test12312"
}
]
} 响应示例
{
"stateCode": "0",
"result": [
{
"reportVersion": "1.1",
"reportName": "7570.xlsx",
"adminOrganizationName": "杨凌作业系统测试",
"orgPath": "-1.830",
"lastUpdateDate": "2024-01-24T03:58:37.177+00:00",
"templateId": 117045418713,
"deleteFlag": 0,
"lastUpdateTimestamp": 1706068717146,
"entityName": "TaskReport",
"reportTemplateName": "报告模板test12312",
"reportCode": "REPORT-202401247146",
"creationTimestamp": 1706068717146,
"isAuto": null,
"id": 127711,
"taskStatus": null,
"reportDoneTimestamp": 1706068717146,
"lastUpdatedBy": 930464,
"appName": "isdp-qc-report-server",
"sceneName": null,
"adminOrganizationCode": "830",
"isNew": 0,
"creationDate": "2024-01-24T03:58:37.177+00:00",
"version": 1.1,
"sceneTaskId": 3312207,
"templateName": "报告模板test12312",
"createdBy": 930464,
"affectedRows": 1,
"tenantId": 886,
"adminOrganization": "830",
"lastUpdateName": "twx接口文档test",
"taskName": "质检任务test1231",
"createName": "twx接口文档test",
"status": 1
}
],
"errorMessage": null
} 
