查询许可明细(API名称:findTicketDetailByTicketId)
功能介绍
该接口提供给用户查询许可单明细。
相关接口
URL
请求方式 |
HTTPS地址 |
服务架构 |
消息体类型 |
---|---|---|---|
POST |
https://isdp+域名/openapi/v1/openSceneTask/findTicketDetailByTicketId |
OpenAPI |
application/json |
请求头
KEY |
VALUE |
是否必填 |
描述 |
---|---|---|---|
Content-Type |
application/json |
是 |
无 |
Authorization |
bearer ${access_token} |
是 |
bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
参数 |
类型 |
是否必填 |
描述 |
---|---|---|---|
ticketId |
Long |
是 |
许可单id |
phaseOrder |
Int |
是 |
阶段序号 |
响应参数
参数 |
类型 |
描述 |
---|---|---|
stateCode |
int |
返回状态,0-正常;其他-异常 |
errorMessage |
String |
错误消息描述 |
result |
Object |
列表详细数据 |
result出参:
参数 |
类型 |
描述 |
---|---|---|
adminOrganizationName |
String |
组织单元名名称 |
ticketRemark |
String |
许可备注 |
deleteFlag |
Int |
删除标识:0-否;1-是 |
ticketPhaseCount |
Int |
许可阶段数量 |
sceneCode |
String |
场景编码 |
sceneId |
Long |
场景id |
ticketCurrentPhaseOrder |
Int |
当前阶段序号 |
licenseSysStatus |
Long |
系统阶段id |
ticketCode |
String |
许可编码 |
ticketCurrentPhaseId |
Long |
当前阶段id |
licenseBusiStatus |
Long |
许可业务状态id |
adminOrganization |
Long |
组织单元id |
ticketId |
Long |
许可id |
ticketName |
String |
许可名称 |
ticketPhaseList |
List |
许可阶段列表 |
executorList |
List |
执行人列表 |
taskAttributeList |
List |
拓展属性列表 |
ticketPhaseList出参:
参数 |
类型 |
描述 |
---|---|---|
checkBusiType |
Int |
检查单业务类型 |
checkOrderId |
Long |
检查单id |
checkOrderType |
Int |
工作票阶段生成的检查单类型(0:EHS;1:质量检查;2:巡检) |
isRejected |
Int |
是否已驳回(0-否;1-是) |
reviewSwitch |
Int |
是否启用审批开关(1-是 0-否) |
sceneInitialStatus |
Long |
初始状态 |
sceneSumbmitStatus |
Long |
提交状态 |
submitUserName |
String |
提交人姓名 |
templateCode |
String |
模板编码 |
templateId |
Long |
模板id |
ticketId |
Long |
许可id |
ticketPhaseCode |
String |
阶段编码 |
ticketPhaseId |
Long |
阶段id |
ticketPhaseName |
String |
阶段名称 |
ticketPhaseOrder |
Int |
阶段修好 |
ticketPhaseStatus |
Int |
许可单阶段状态(1-初始状态,待执行 2-阶段执行中(审批翻转)3-待评审 4-阶段完成) |
executorList出参:
参数 |
类型 |
描述 |
---|---|---|
ticketId |
Long |
许可id |
userId |
Long |
用户id |
userName |
String |
用户名称 |
userType |
Int |
用户类型 |
taskAttributeList出参:
参数 |
类型 |
描述 |
---|---|---|
id |
Long |
拓展属性id |
extendName |
String |
拓展属性名称 |
extendType |
Int |
拓展属性类型 |
extendValue |
String |
拓展属性的值 |
fieldOrder |
Int |
拓展属性序号 |
udfName |
String |
Udf的名称 |
isNecessary |
Int |
是否必填(0-否;1-是) |
请求示例
{ "ticketId": 79462, "phaseOrder": 1 }
响应示例
{ "stateCode": "100", "errorMessage": "调用成功,正常返回数据", "result": { "adminOrganizationName": "XX作业系统测试", "lastUpdateDate": "2022-03-09T09:05:12.000+00:00", "taskList": [], "ticketRemark": "", "deleteFlag": 0, "lastUpdateTimestamp": 1646816704963, "ticketPhaseCount": 3, "sceneCode": "PS20220302113005046", "entityName": "workTicket", "ticketPhaseList": [ { "appName": "isdp-task-server", "checkBusiType": "许可01", "checkOrderId": 5734515, "checkOrderType": 1, "createdBy": 519119, "createName": "wsd", "creationDate": "2022-03-09T09:05:06.000+00:00", "creationTimestamp": 1646816706941, "deleteFlag": 0, "entityName": "workTicketPhase", "isRejected": 0, "lastUpdateDate": "2022-03-09T09:05:10.000+00:00", "lastUpdatedBy": 519119, "lastUpdateName": "wsd", "lastUpdateTimestamp": 1646816706941, "reviewSwitch": 0, "sceneInitialStatus": 1084, "sceneSumbmitStatus": 1085, "submitUserName": null, "templateCode": "QC2022XXXXXXXXXXXXX", "templateId": 221760, "tenantId": 886, "ticketId": 79462, "ticketPhaseCode": "50399", "ticketPhaseId": 211778, "ticketPhaseName": "阶段1", " ": 1, "ticketPhaseStatus": 1 } ], "creationTimestamp": 1646816704963, "sceneId": 99028, "ticketCurrentPhaseOrder": 1, "licenseSysStatus": "1", "executorList": [ { "appName": "isdp-task-server", "createdBy": 519119, "createName": "wsd", "creationDate": "2022-03-09T09:05:06.000+00:00", "creationTimestamp": 1646816705993, "deleteFlag": 0, "entityName": "IsdpTaskUserInfo", "id": 2044825, "lastUpdateDate": "2022-03-09T09:05:06.000+00:00", "lastUpdatedBy": 519119, "lastUpdateName": "wsd", "lastUpdateTimestamp": 1646816705993, "remark": null, "sceneTaskId": 0, "tenantId": 886, "ticketId": 79462, "ticketPhaseId": 0, "userId": 25804, "userName": "刘XX", "userType": 1 } ], "ticketCode": "SaasTenant886_20220309_022989", "lastUpdatedBy": 519119, "appName": "isdp-task-server", "taskAttributeList": [ { "id": 296999, "extendName": "文本", "extendType": 1, "extendValue": "1212", "fieldOrder": 1, "udfName": "UDF1", "isNecessary": 1 } ], "creationDate": "2022-03-09T09:05:05.000+00:00", "deleteReason": null, "createdBy": 519119, "ticketCurrentPhaseId": 211778, "licenseBusiStatus": 1084, "tenantId": 886, "adminOrganization": "830", "lastUpdateName": "wsd", "approverList": [], "createName": "wsd", "ticketId": 79462, "ticketName": "周XX-0302" } }
状态码
状态码请参见状态码。
错误码
错误码请参见错误码。