查询许可阶段明细(API名称:openSceneTask/findWorkTicketPhaseDetail)
功能介绍
查询许可阶段明细
相关接口
| 接口名称 | 调用说明 |
|---|---|
| 调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
URL
| 请求方式 | HTTPS地址 | 服务架构 | 消息体类型 |
|---|---|---|---|
| POST | https://isdp+域名/openapi/v1/openSceneTask/findWorkTicketPhaseDetail | OpenAPI | application/json |
请求头
| KEY | VALUE | 是否必填 | 描述 |
|---|---|---|---|
| Content-Type | application/json | 是 | 无 |
| Authorization | bearer ${access_token} | 是 | bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| ticketId | Long | 是 | 工作票ID |
响应参数
| 参数 | 类型 | 描述 |
|---|---|---|
| stateCode | String | 响应状态码:
|
| errorMessage | String | 响应描述 |
| result | Object | 响应结果内容data、分页数据 |
result
| 参数 | 类型 | 描述 |
|---|---|---|
| appName | String | 应用名称 |
| checkBusiType | String | 检查单业务类型 |
| checkOrderId | Long | 工作票阶段检查单ID |
| checkOrderType | Integer | 工作票阶段生成的检查单类型(0:EHS;1:质量检查;2:巡检) |
| createdBy | Long | 创建人 |
| createName | String | 创建名称 |
| creationDate | Date | 创建时间 |
| creationTimestamp | Long | 创建时间戳 |
| deleteFlag | Integer | 删除标识 |
| entityName | String | 实体名称 |
| isRejected | Integer | 是否已驳回(0-否;1-是) |
| lastUpdateDate | Date | 最近更新日期 |
| lastUpdatedBy | Long | 最近更新人 |
| lastUpdateName | String | 最近更新人名称 |
| lastUpdateTimestamp | Long | 最近更新人时间戳 |
| reviewSwitch | Integer | 是否启用审批开关(1-是 2-否) |
| sceneInitialStatus | Long | 初始状态ID |
| sceneSumbmitStatus | Long | 提交状态ID |
| submitUserName | String | 提交人 |
| templateCode | String | 工作票模板编码 |
| templateId | Long | 工作票模板ID |
| tenantId | Long | 租户ID |
| ticketId | Long | 工作票ID(许可单ID) |
| ticketPhaseCode | String | 工作票阶段编码 |
| ticketPhaseId | Long | 工作票阶段ID |
| ticketPhaseName | String | 工作票阶段名称 |
| ticketPhaseOrder | Integer | 工作票阶段序号 |
| ticketPhaseStatus | Integer | 工作票阶段状态(1-初始状态,待执行 2-阶段执行中(审批翻转)3-阶段完成) |
| kcpList | List | Kcp列表 |
kcpList:
| 参数 | 类型 | 描述 |
|---|---|---|
| kcpId | Long | Kcp id |
| name | String | Kcp名称 |
| templateId | Long | 模板id |
| children | Int | Item列表 |
children:
| 参数 | 类型 | 描述 |
|---|---|---|
| id | Long | 拓展属性id |
| itemId | Long | Item id |
| itemIndex | Int | Item下标排序 |
| itemType | Int | 条目类型(1:临时检查项;0:非临时检查项;2:标准条目) |
| name | String | 条目名称 |
| approveStatus | Int | 1、未提交审核 2、待评审 3、已评审 |
| collectStatus | Int | 采集状态: 1:待采集 2:已采集 |
| colletData | List | 采集数据列表 |
colletData:
| 参数 | 类型 | 描述 |
|---|---|---|
| itemId | Long | Item id |
| itemType | Int | 条目类型(1:临时检查项;0:非临时检查项;2:标准条目) |
| children | List | 输出项列表 |
children出参:
| 参数 | 类型 | 描述 |
|---|---|---|
| itemId | Long | Item id |
| outputId | Long | 输出项id |
| outputName | String | 输出项名称 |
| countPhoto | Int | 已采集图片数量 |
| countVideo | Int | 已采集视频数量 |
| outputType | Int | 输出项类型 16:文件 15:时间(年月日时分) 13:图片 14:视频 3:图片/视频 2:文本 5:整数 6:小数 1:枚举 4:多枚举 11:GPS 9:条码 7:日期 10:NA 17音频 18签名 |
| maxPhoto | Int | 最大图片数量 |
| maxVideo | Int | 最大视频数量 |
| outputModel | List | 输出项子项 |
| qcVideoModelList | List | 采集的视频列表 |
| qcPhotoModelList | List | 采集的图片列表 |
| qcFileModelList | List | 采集的文件列表 |
| qcCollectionDataModelList | List | 采集数据列表 |
请求示例
{
"ticketId": 143294
} 响应示例
{
"stateCode": "0",
"errorMessage": null,
"result": [
{
"appName": "isdp-task-server",
"checkBusiType": "许可01",
"checkOrderId": 6119716,
"checkOrderType": 1,
"createdBy": 930218,
"createName": "汤文祥",
"creationDate": "2024-01-27T01:43:00.000+00:00",
"creationTimestamp": 1706319780789,
"deleteFlag": 0,
"entityName": "WorkTicketPhase",
"isRejected": 0,
"lastUpdateDate": "2024-01-27T01:43:01.000+00:00",
"lastUpdatedBy": 930218,
"lastUpdateName": "汤文祥",
"lastUpdateTimestamp": 1706319780789,
"reviewSwitch": 0,
"sceneInitialStatus": 1083,
"sceneSumbmitStatus": 1521,
"submitUserName": null,
"templateCode": "QC202XXXXXXXXXXXXXX",
"templateId": 313068,
"tenantId": 886,
"ticketId": 143294,
"ticketPhaseCode": "51815",
"ticketPhaseId": 402060,
"ticketPhaseName": "阶段1",
"ticketPhaseOrder": 1,
"ticketPhaseStatus": 1,
"kcpList": [
{
"kcpId": 438668,
"name": "new kcp1",
"templateId": 313068,
"children": [
{
"collectNa": 0,
"allowedNa": 1,
"appName": "isdp-qc-server",
"createdBy": 153169,
"creationDate": "2023-06-30T07:03:50.000+00:00",
"deleteFlag": 0,
"entityName": "TemplateItem",
"handlerNameInspection": null,
"handlerNameQualityInspection": null,
"identificationType": "",
"intelligentReviewRules": "",
"isExemption": 0,
"issueHandlerInspection": null,
"issueHandlerQualityInspection": null,
"issueTypeInspection": "",
"issueTypeQualityInspection": "",
"itemCode": null,
"itemId": 3576667,
"itemIndex": 0,
"itemType": 0,
"kcpId": 438668,
"kcpIndex": 0,
"kcpName": null,
"lastUpdateDate": "2023-06-30T07:03:50.000+00:00",
"lastUpdatedBy": 153169,
"name": "Item1",
"objectIndustryTypeId": null,
"objectIndustryTypeIdText": null,
"operationGuide": "",
"qualificationType": 1,
"qualityStandard": "",
"rejectionReason": null,
"sceneTypeName": null,
"severity": 1,
"templateId": 313068,
"tenantId": 886,
"approveStatus": 1,
"reviewStatus": 4,
"collectStatus": 2,
"aiResult": "wait",
"colletData": {
"itemId": 3576667,
"itemName": "Item1",
"itemType": 0,
"itemRemark": null,
"itemContent": null,
"itemCheckResult": null,
"isOldDate": null,
"kcpId": null,
"ratingType": null,
"itemScore": null,
"children": [
{
"itemId": 3576667,
"outputId": 43955188,
"outputName": "1",
"outputCode": null,
"countPhoto": 0,
"countVideo": 0,
"outputType": 13,
"collectScene": null,
"qualificationType": null,
"isNecessary": null,
"compressionRatio": null,
"demoPictureId": null,
"maxPhoto": 0,
"maxVideo": 0,
"enablePhoto": null,
"outputModel": {
"itemId": 3576667,
"templateId": 313068,
"outputId": 43955188,
"outputName": "1",
"outputType": 13,
"maxPhoto": null,
"maxVideo": null,
"isNecessary": 0,
"qualificationType": null,
"enumValue": "",
"maxValue": "",
"minValue": "",
"enablePhoto": null,
"compressionRatio": null,
"demoPictureId": null,
"deleteFlag": 0,
"accuracy": null,
"cascadeOutputId": null,
"collectScene": 0,
"designValue": "",
"deviationValue": null,
"designValueOrder": null,
"isSubOutput": null,
"oldItemId": null,
"itemType": 0,
"isAudioIdentify": 0,
"measurementOrder": 0,
"defaultValue": "",
"outputCode": null,
"isStrongWeak": null,
"intelligentObject": "",
"isCascading": 0,
"parentEnum": null,
"parentEnumName": null,
"parentOutputId": null
},
"itemName": null,
"isCascading": 0,
"parentEnumName": null,
"cascadeOutputId": null,
"parentEnum": null,
"parentOutputId": null,
"kcpName": null,
"qcExamplePhotoModelList": [],
"qcExampleVideoModelList": [],
"qcPhotoModelList": [],
"qcVideoModelList": [],
"qcFileModelList": [],
"qcCollectionDataModelList": []
}
]
}
}
]
}
]
}
]
}