查询检查单模板信息(API名称:findKcpListByTemplateId)
功能介绍
查询已创建好的检查单模板详情。
相关接口
| 接口名称 | 调用说明 |
|---|---|
| 调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 | |
| 基于创建的检查单进行查询 | |
| 查询后需要修改检查单模板 |
URL
| 请求方式 | HTTPS地址 | 服务架构 | 消息体类型 |
|---|---|---|---|
| POST | https://isdp+域名/openapi/v1/openCollect/findKcpListByTemplateId | OpenAPI | application/json |
请求头
| KEY | VALUE | 是否必填 | 描述 |
|---|---|---|---|
| Content-Type | application/json | 是 | 无 |
| Authorization | bearer ${access_token} | 是 | bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| taskid | Long | 是 | 检查单ID |
| templateId | Long | 是 | 模板ID |
响应参数
| 参数 | 类型 | 描述 |
|---|---|---|
| stateCode | String | 响应编码:0-成功;其他-失败 |
| errorMessage | String | 错误信息 |
| result | List | 响应数据 |
| kcpId | Long | Kcp ID |
| name(kcp范围) | String | kcp名称 |
| templateId | Long | 模板ID |
| children | List | Kcp下Item列表 |
| itemId | String | 组织管理单元 |
| name(children范围) | String | Item 名称 |
请求示例
{
"taskId":1607242,"templateId":134636
} 响应示例
{
"stateCode": "0",
"errorMessage": null,
"result": [
{
"kcpId": 181977,
"name": "new kcp1",
"templateId": 134636,
"children": [
{
"collectNa": 0,
"allowedNa": 1,
"appName": "isdp-qc-server",
"createdBy": 25773,
"creationDate": "2020-12-10T00:41:39.000+00:00",
"deleteFlag": 0,
"entityName": "templateItem",
"handlerNameInspection": null,
"handlerNameQualityInspection": null,
"identificationType": "",
"intelligentReviewRules": "2",
"isExemption": 0,
"issueHandlerInspection": null,
"issueHandlerQualityInspection": null,
"issueTypeInspection": null,
"issueTypeQualityInspection": null,
"itemCode": null,
"itemId": 3141037,
"itemIndex": 0,
"itemStatus": 0,
"itemType": 0,
"kcpId": 181977,
"kcpIndex": 0,
"kcpName": null,
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"lastUpdatedBy": 25773,
"name": "规则1",
"objectIndustryId": 2,
"objectIndustryTypeId": null,
"objectIndustryTypeIdText": null,
"objectType": 8,
"operationGuide": "",
"processType": 0,
"qualityStandard": "",
"rejectionReason": null,
"sceneTypeName": null,
"severity": 1,
"templateId": 134636,
"tenantId": 886,
"collectStatus": 1,
"approveStatus": 1,
"reviewStatus": 1,
"smartObjectList": [
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": 1,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141037,
"keyInformation": "",
"minValue": 1,
"smartObjectName": "机柜",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39607,
"smartObjectId": "10001"
},
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": 1,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141037,
"keyInformation": "",
"minValue": 1,
"smartObjectName": "BBU接地线对端标签安装检查",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39608,
"smartObjectId": "30024"
},
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": 1,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141037,
"keyInformation": "",
"minValue": 1,
"smartObjectName": "BBU接地线对端安装检查",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39609,
"smartObjectId": "30023"
},
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": 1,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141037,
"keyInformation": "",
"minValue": 1,
"smartObjectName": "BBU",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39610,
"smartObjectId": "30001"
}
],
"aiResult": "wait"
},
{
"collectNa": 0,
"allowedNa": 1,
"appName": "isdp-qc-server",
"createdBy": 25773,
"creationDate": "2020-12-10T00:41:39.000+00:00",
"deleteFlag": 0,
"entityName": "templateItem",
"handlerNameInspection": null,
"handlerNameQualityInspection": null,
"identificationType": "",
"intelligentReviewRules": "1",
"isExemption": 0,
"issueHandlerInspection": null,
"issueHandlerQualityInspection": null,
"issueTypeInspection": null,
"issueTypeQualityInspection": null,
"itemCode": null,
"itemId": 3141038,
"itemIndex": 1,
"itemStatus": 0,
"itemType": 0,
"kcpId": 181977,
"kcpIndex": 0,
"kcpName": null,
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"lastUpdatedBy": 25773,
"name": "规则2",
"objectIndustryId": 2,
"objectIndustryTypeId": null,
"objectIndustryTypeIdText": null,
"objectType": 8,
"operationGuide": "",
"processType": 0,
"qualityStandard": "",
"rejectionReason": null,
"sceneTypeName": null,
"severity": 1,
"templateId": 134636,
"tenantId": 886,
"collectStatus": 1,
"approveStatus": 1,
"reviewStatus": 1,
"smartObjectList": [
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": 1,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141038,
"keyInformation": "",
"minValue": 1,
"smartObjectName": "机柜",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39611,
"smartObjectId": "10001"
},
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": 1,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141038,
"keyInformation": "",
"minValue": 1,
"smartObjectName": "BBU",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39612,
"smartObjectId": "30001"
},
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": 1,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141038,
"keyInformation": "",
"minValue": 1,
"smartObjectName": "AAU",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39613,
"smartObjectId": "90001"
}
],
"aiResult": "wait"
}
]
},
{
"kcpId": 181978,
"name": "new kcp2",
"templateId": 134636,
"children": [
{
"collectNa": 0,
"allowedNa": 1,
"appName": "isdp-qc-server",
"createdBy": 25773,
"creationDate": "2020-12-10T00:41:39.000+00:00",
"deleteFlag": 0,
"entityName": "templateItem",
"handlerNameInspection": null,
"handlerNameQualityInspection": null,
"identificationType": "1;2",
"intelligentReviewRules": "3",
"isExemption": 0,
"issueHandlerInspection": null,
"issueHandlerQualityInspection": null,
"issueTypeInspection": null,
"issueTypeQualityInspection": null,
"itemCode": null,
"itemId": 3141039,
"itemIndex": 0,
"itemStatus": 0,
"itemType": 0,
"kcpId": 181978,
"kcpIndex": 1,
"kcpName": null,
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"lastUpdatedBy": 25773,
"name": "Item1",
"objectIndustryId": 1,
"objectIndustryTypeId": null,
"objectIndustryTypeIdText": null,
"objectType": 11,
"operationGuide": "",
"processType": 0,
"qualificationType": 1,
"qualityStandard": "",
"rejectionReason": null,
"sceneTypeName": null,
"severity": 1,
"templateId": 134636,
"tenantId": 886,
"collectStatus": 2,
"approveStatus": 1,
"reviewStatus": 1,
"smartObjectList": [
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": null,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141039,
"keyInformation": "",
"minValue": null,
"smartObjectName": "人",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39614,
"smartObjectId": "person"
},
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": null,
"source": "manas-clause",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141039,
"keyInformation": "",
"minValue": null,
"smartObjectName": "荧光服",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39615,
"smartObjectId": "high_visible_vest"
}
],
"aiResult": "N"
},
{
"collectNa": 0,
"allowedNa": 1,
"appName": "isdp-qc-server",
"createdBy": 25773,
"creationDate": "2020-12-10T00:41:39.000+00:00",
"deleteFlag": 0,
"entityName": "templateItem",
"handlerNameInspection": null,
"handlerNameQualityInspection": null,
"identificationType": "1;2",
"intelligentReviewRules": "3",
"isExemption": 0,
"issueHandlerInspection": null,
"issueHandlerQualityInspection": null,
"issueTypeInspection": null,
"issueTypeQualityInspection": null,
"itemCode": null,
"itemId": 3141040,
"itemIndex": 1,
"itemStatus": 0,
"itemType": 0,
"kcpId": 181978,
"kcpIndex": 1,
"kcpName": null,
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"lastUpdatedBy": 25773,
"name": "Item2",
"objectIndustryId": 1,
"objectIndustryTypeId": null,
"objectIndustryTypeIdText": null,
"objectType": 11,
"operationGuide": "",
"processType": 0,
"qualificationType": 1,
"qualityStandard": "",
"rejectionReason": null,
"sceneTypeName": null,
"severity": 1,
"templateId": 134636,
"tenantId": 886,
"collectStatus": 1,
"approveStatus": 1,
"reviewStatus": 1,
"smartObjectList": [
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": null,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141040,
"keyInformation": "",
"minValue": null,
"smartObjectName": "人",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39616,
"smartObjectId": "person"
},
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": null,
"source": "manas-clause",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141040,
"keyInformation": "",
"minValue": null,
"smartObjectName": "荧光服",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39617,
"smartObjectId": "high_visible_vest"
},
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": null,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141040,
"keyInformation": "",
"minValue": null,
"smartObjectName": "安全鞋",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39618,
"smartObjectId": "safety_shoe"
},
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": null,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141040,
"keyInformation": "",
"minValue": null,
"smartObjectName": "安全帽",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39619,
"smartObjectId": "helmet"
},
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": null,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141040,
"keyInformation": "",
"minValue": null,
"smartObjectName": "双钩",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39620,
"smartObjectId": "hook"
},
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": null,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141040,
"keyInformation": "",
"minValue": null,
"smartObjectName": "手套",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39621,
"smartObjectId": "glove"
},
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": null,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141040,
"keyInformation": "",
"minValue": null,
"smartObjectName": "口罩",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39622,
"smartObjectId": "mask"
},
{
"lastUpdatedBy": 25773,
"appName": "isdp-qc-server",
"lastUpdateDate": "2020-12-10T00:41:39.000+00:00",
"maxValue": null,
"source": "manas",
"creationDate": "2020-12-10T00:41:39.000+00:00",
"templateId": 134636,
"deleteFlag": 0,
"itemId": 3141040,
"keyInformation": "",
"minValue": null,
"smartObjectName": "墨镜",
"createdBy": 25773,
"entityName": "multiObject",
"tenantId": 886,
"id": 39623,
"smartObjectId": "sunglasses"
}
],
"aiResult": "wait"
}
]
}
]
} 状态码
状态码请参见状态码。
错误码
错误码请参见错误码。