查询任务详情(API名称:openTaskScene/queryTaskInfo)
功能介绍
查询任务详情。
相关接口
接口名称 | 调用说明 |
|---|---|
调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
URL
请求方式 | HTTPS地址 | 服务架构 | 消息体类型 |
|---|---|---|---|
POST | https://isdp+域名/openapi/v1/openTaskScene/queryTaskInfo | OpenAPI | application/json |
请求头
KEY | VALUE | 是否必填 | 描述 |
|---|---|---|---|
Content-Type | application/json | 是 | 无 |
Authorization | bearer ${access_token} | 是 | bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
请求参数 Object
参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
taskId | Long | 是 | 父任务id,只能单个查询,会查询下属所有的子任务 |
subTaskId | Long | 否 | 子任务id,查当前子任务详情 |
响应参数
参数 | 类型 | 描述 |
|---|---|---|
stateCode | String | 响应状态码:
|
errorMessage | String | 响应描述 |
result | Object | 响应结果内容data、分页数据 |
result出参:
参数 | 类型 | 描述 |
|---|---|---|
taskInfo | Object | 父任务详情 |
subTaskInfo | Object | 子任务详情 |
taskInfo出参:
参数 | 类型 | 描述 |
|---|---|---|
sceneTaskId | Long | 任务id |
taskName | String | 任务名称 |
sceneMode | Integer | 任务模式:
|
status | Integer | 任务状态:
|
createdBy | Long | 创建人id |
createName | String | 创建人姓名 |
createDate | Long | 任务创建时间 |
planStartTime | Long | 计划开始时间 |
planEndTime | Long | 计划完成时间 |
actualBeginTime | Long | 实际开始时间 |
actualEndTime | Long | 实际完成时间 |
processFeedback | String | 进展反馈 |
currentProcedureId | Integer | 当前工序步骤 |
currentProcedureName | String | 当前工序名称 |
licenseSwitch | Integer | 是否受许可控制开关:
|
checkOrderId | Long | 关联检查单id |
checkOrderName | String | 关联的检查单名称 |
checkOrderType | Integer | 任务生成的检查单类型:
|
sceneId | Long | 场景id |
sceneName | String | 场景名称 |
signSiteId | Long | 作业对象id |
signSiteName | String | 作业对象名称 |
signSiteCode | String | 作业对象编码 |
supplierName | String | 供应商名称 |
adminOrganizationName | String | 组织单元名称 |
projectNo | String | 项目编码 |
projectName | String | 项目名称 |
deleteFlag | Integer | 删除标识:0未删除,1已删除 |
taskObjectType | String | 任务作业对象类型名称 |
createAttribute | Object(UDF1-UDF40对应任务场景中的扩展属性编码) | 创建阶段扩展属性 |
executeAttribute | Object(UDF1-UDF40对应任务场景中的扩展属性编码) | 执行阶段扩展属性 |
executorList | Object | 任务执行人 |
preTaskList | List< Object > | 子任务关联关系 |
subTaskInfo 出参
参数 | 类型 | 描述 |
|---|---|---|
sceneTaskId | Long | 子任务ID |
taskId | Long | 父任务ID |
taskName | String | 任务名称 |
status | Integer | 0:草稿;1:待执行;2:执行中;3:已完成 4:已取消;5:申请待审批;6:待调度;9:已驳回 |
createdBy | Long | 创建人ID |
createName | String | 创建人姓名 |
currentProcedureId | Long | 当前工序 |
currentProcedureName | String | 当前工序名称 |
pocedureOrNot | Integer | 子任务是否包含工序(0:否;1:是) |
checkOrderId | Long | 子任务关联检查单ID |
checkOrderName | String | 子任务关联检查单名称 |
checkOrderType | Integer | 子任务关联检查单类型(0:EHS;1:质检;2:巡检) |
description | String | 子任务描述 |
actualEndTime | Long | 子任务实际结束时间 |
actualBeginTime | Long | 子任务实际开始时间 |
beginTimestamp | Long | 计划开始时间 |
endTimestamp | Long | 计划完成时间 |
processFeedback | String | 子任务进展反馈 |
isNa | Integer | 子任务NA |
signSiteId | Long | 子任务作业对象ID |
signSiteCode | String | 子任务作业对象编码 |
signSiteName | String | 子任务作业对象名称 |
regionId | Long | 子任务行政区域ID |
regionPath | String | 子任务行政区域路径 |
regionName | String | 子任务行政区域名称 |
isExecute | Integer | 子任务是否可执行 |
priority | String | 子任务优先级 |
jobDuration | Integer | 子任务工时 |
projectDuration | Integer | 子任务工期 |
administrativeDivision | String | 子任务行政区域ID串 |
administrativeDivisionName | String | 子任务行政区域名称串 |
skill | String | 子任务要求技能 |
address | String | 子任务详细地址 |
requiredStartTime | Long | 子任务要求开始时间 |
requiredEndTime | Long | 子任务要求完成时间 |
taskExtend | List | 子任务扩展属性 |
procedureList | List | 子任务关联工序 |
parentTaskList | List | 对应的父任务信息 |
executorList | Object | 任务执行人 |
data中taskExtend字段说明:
参数 | 类型 | 描述 |
|---|---|---|
extendName | String | 子任务扩展属性名称 |
stage | Integer | 子任务扩展属性所属阶段1:创建;2:执行 |
fieldOrder | Integer | 子任务扩展属性顺序 |
extendValue | String | 扩展属性值 |
udfName | String | 扩展属性编码 |
extendType | Integer | 扩展属性类型(1:长文本;2:枚举;3:多枚举; 4:日期;5:时间;6:整数;7:小数;20:短文本) |
isNecessary | Integer | 扩展属性是否必填(1:必填;2:不必填) |
data中procedureList字段说明:
参数 | 类型 | 描述 |
|---|---|---|
isAppraisal | Integer | 是否采集审批0:否;1:是 |
collectionReviewName | String | 采集审批流名称 |
licenseSwitch | Integer | 是否受许可控制0:否;1:是 |
operationGuideList | List | 操作指导 |
description | String | 工序描述 |
templateCode | String | 采集模板编码 |
templateId | Long | 采集模板ID |
version | String | 采集模板版本 |
templateName | String | 采集模板名称 |
licenseTag | Integer | 许可标识0-无,1-许可启动,2-许可终结 |
taskName | String | 工序名称 |
collectionReviewId | Long | 采集审批流 |
procedureOrder | Integer | 工序顺序 |
procedureList中operationGuideList字段说明:
参数 | 类型 | 描述 |
|---|---|---|
fileId | Long | 工序操作指导文件ID |
filename | String | 工序操作指导文件名称 |
fileType | String | 工序操作指导文件类型 |
fileSize | Long | 工序操作指导文件大小 |
data中parentTaskList字段说明:
参数 | 类型 | 描述 |
|---|---|---|
sceneTaskId | Long | 任务id |
taskName | String | 任务名称 |
sceneMode | Integer | 任务模式:
|
status | Integer | 任务状态:
|
createdBy | Long | 创建人id |
createName | String | 创建人姓名 |
createDate | Long | 任务创建时间 |
planStartTime | Long | 计划开始时间 |
planEndTime | Long | 计划完成时间 |
actualBeginTime | Long | 实际开始时间 |
actualEndTime | Long | 实际完成时间 |
processFeedback | String | 进展反馈 |
currentProcedureId | Integer | 当前工序步骤 |
currentProcedureName | String | 当前工序名称 |
licenseSwitch | Integer | 是否受许可控制开关:
|
checkOrderId | Long | 关联检查单id |
checkOrderName | String | 关联的检查单名称 |
checkOrderType | Integer | 任务生成的检查单类型:
|
sceneId | Long | 场景id |
sceneName | String | 场景名称 |
signSiteId | Long | 作业对象id |
signSiteName | String | 作业对象名称 |
signSiteCode | String | 作业对象编码 |
supplierName | String | 供应商名称 |
adminOrganizationName | String | 组织单元名称 |
projectNo | String | 项目编码 |
projectName | String | 项目名称 |
deleteFlag | Integer | 删除标识:0未删除,1已删除 |
taskObjectType | String | 任务作业对象类型名称 |
data中executorList字段说明:
参数 | 类型 | 描述 |
|---|---|---|
userId | Long | 人员ID |
userName | String | 人员名称 |
userType | Integer | 任务类型 |
data中preTaskList字段说明:
参数 | 类型 | 描述 |
|---|---|---|
taskPreId | Long | 后置任务id |
preTaskId | Long | 前置任务id |
taskPreName | String | 后置任务名称 |
preTaskName | String | 前置任务名称 |
preType | Integer | 前置任务类型 |
preTaskLocation | String | 前置任务位置信息 |
taskPreLocation | String | 后置任务位置信息 |
taskId | Long | 父任务ID |
sceneId | Long | 场景ID |
请求示例
{
"taskId": 5074441,
"subTaskId": 5021549
} 响应示例
{
"stateCode": "0",
"errorMessage": null,
"result": {
"subTaskInfo": {
"sceneTaskId": 5021549,
"taskId": 5074441,
"taskName": "子任务1",
"status": 1,
"createdBy": 1823,
"createName": "superman",
"currentProcedureId": null,
"currentProcedureName": null,
"pocedureOrNot": 0,
"checkOrderId": null,
"checkOrderName": null,
"checkOrderType": 1,
"description": "",
"actualEndTime": null,
"actualBeginTime": null,
"beginTimestamp": 1652803200000,
"endTimestamp": 1653055200000,
"processFeedback": null,
"isNa": 0,
"signSiteId": null,
"signSiteCode": null,
"signSiteName": "",
"regionId": null,
"regionPath": null,
"regionName": null,
"isExecute": 1,
"priority": "",
"jobDuration": null,
"projectDuration": null,
"administrativeDivision": null,
"administrativeDivisionName": null,
"skill": "",
"address": "",
"requiredStartTime": 1653062400000,
"requiredEndTime": 1653926400000,
"parentTaskId": 5074441,
"stage": 1,
"udf1": null,
"udf2": null,
"udf3": null,
"udf4": null,
"udf5": null,
"udf6": null,
"udf7": null,
"udf8": null,
"udf9": null,
"udf10": null,
"udf11": null,
"udf12": null,
"udf13": null,
"udf14": null,
"udf15": null,
"udf16": null,
"udf17": null,
"udf18": null,
"udf19": null,
"udf20": null,
"udf21": null,
"udf22": null,
"udf23": null,
"udf24": null,
"udf25": null,
"udf26": null,
"udf27": null,
"udf28": null,
"udf29": null,
"udf30": null,
"udf31": null,
"udf32": null,
"udf33": null,
"udf34": null,
"udf35": null,
"udf36": null,
"udf37": null,
"udf38": null,
"udf39": null,
"udf40": null,
"taskExtend": [],
"procedureList": []
},
"taskInfo": {
"sceneTaskId": 5074441,
"sceneMode": 4,
"status": 1,
"createdBy": 1823,
"createName": "superman",
"currentProcedureId": null,
"currentProcedureName": null,
"licenseSwitch": null,
"processFeedback": null,
"checkOrderId": null,
"checkOrderName": null,
"checkOrderType": null,
"creationTimestamp": 1691054293030,
"actualBeginTime": null,
"schedulerDate": 1691054293000,
"schedulerTimestamp": 1691054293030,
"schedulerBy": -1,
"schedulerName": "OpenApi",
"actualEndTime": null,
"lastUpdatedBy": 1823,
"lastUpdateName": "superman",
"lastUpdateTimestamp": 1691054293030,
"taskType": 1,
"category": null,
"categoryId": null,
"parentCategory": null,
"parentCategoryId": null,
"taskName": "7QQ-父子任务-2-3",
"sceneId": 5000564,
"sceneName": "测试OpenApi",
"signSiteId": 9911293387,
"signSiteName": "bzh00201",
"signSiteCode": "bzh00201",
"regionId": null,
"regionPath": null,
"regionName": null,
"supplierName": null,
"adminOrganizationName": "1508098844233300",
"adminOrganization": "1543",
"sceneCode": "TS20220629145147462",
"projectNo": null,
"taskObjectType": "屋顶站",
"projectName": null,
"requiredEndTime": null,
"planStartTime": null,
"planEndTime": null,
"deleteFlag": 0,
"deleteReason": null,
"priority": null,
"jobDuration": null,
"projectDuration": null,
"schedulingMode": null,
"administrativeDivision": null,
"administrativeDivisionName": null,
"skill": null,
"customerId": null,
"customerName": null,
"address": null,
"requiredStartTime": null,
"executorList": [
{
"sceneTaskId": 5074441,
"taskType": 1,
"userId": 115794,
"userInfoId": 5274685,
"userName": "0326test",
"userType": 2
}
],
"createAttribute": null,
"executeAttribute": null,
"subTaskList": [
{
"sceneTaskId": 5021549,
"taskId": 5074441,
"taskName": "子任务1",
"status": 1,
"createdBy": 1823,
"createName": "superman",
"currentProcedureId": null,
"currentProcedureName": null,
"pocedureOrNot": 0,
"checkOrderId": null,
"checkOrderName": null,
"checkOrderType": 1,
"description": "",
"actualEndTime": null,
"actualBeginTime": null,
"beginTimestamp": 1652803200000,
"endTimestamp": 1653055200000,
"processFeedback": null,
"isNa": 0,
"signSiteId": null,
"signSiteCode": null,
"signSiteName": "",
"regionId": null,
"regionPath": null,
"regionName": null,
"isExecute": 1,
"priority": "",
"jobDuration": null,
"projectDuration": null,
"administrativeDivision": null,
"administrativeDivisionName": null,
"skill": "",
"address": "",
"requiredStartTime": 1653062400000,
"requiredEndTime": 1653926400000,
"parentTaskId": 5074441,
"stage": 1
}
]
}
}
} 
