1. 工作表节点接口
API列表
编号 | API名称 | 路径 | 版本 |
---|---|---|---|
1.1 | 节点设置-节点列表 | /v1/workorder/admin/node/def-list | 1.0 |
1.2 | 节点设置-默认流程节点更新 | /v1/workorder/admin/node/def-update | 1.0 |
1.4 | 流程设置-模板删除 | /v1/workorder/admin/remove/{id} | 1.0 |
1.5 | 工单状态-状态轨迹 | /v1/workorder/user/status/list | 1.0 |
1.6 | 模板设计-通过templateId获取流程设计中的列表 | /v1/workorder/admin/node/nodeList/{id} | 1.0 |
1.7 | 流程模板-节点更新 | /v1/workorder/admin/node/node-update | 1.0 |
1.8 | 工单节点-通过工工单id获取当前节点的配置信息 | /v1/workorder/admin/node/workorder/{id} | 1.0 |
1.9 | 工单节点-通过工单id获取当前状态信息 | /v1/workorder/user/status/byWorkId/{id} | 1.0 |
1.1: 节点设置-节点列表
描述
请求信息
HTTP协议:HTTP,HTTPS
uri:/v1/workorder/admin/def-list
方法:POST
请求参数
无
请求Body描述(非Form表单数据)
{
}
返回信息
返回参数类型
JSON
返回参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
id | 顶层 | long | 是 | 主键 |
nodeName | 顶层 | STRING | 是 | 节点名称 |
orderNo | 顶层 | int | 是 | 排序号 |
nodeCode | 顶层 | String | 是 | 节点编码 |
返回结果示例
{
"code": "200",
"message": "success",
"data": [
{id:1,
nodeName:"登记",
orderNo:1,
nodeCode:"A0001"}
]
}
API调用
1.2: 默认流程节点
描述
请求信息
HTTP协议:HTTP,HTTPS
uri: /v1/workorder/admin/node/def-update
方法:POST
请求参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
id | body | Long | y | id |
nodeName | body | string | y | 节点名称 |
orderNo | body | string | y | 排序号 |
nodeCode | body | String | y | 节点编码 |
participateRolesName | body | String | y | 参与角色名称,逗号隔开 |
participateRolesId | body | String | y | 参与角色ID,逗号隔开 |
timeoutHour | body | int | n | 时长,小时 |
timeoutMinute | body | int | n | 时长,分钟 |
isAutoSubmit | body | String | y | 是否超时自动提交 |
autoSubmitHour | body | int | N | 自动提交时长,小时 |
autoSubmitMinute | body | String | N | 自动提交时长,分钟 |
acceptRemind | body | String | N | 接单后提示语 |
isTimeoutRemind | body | String | Y | 超时是否提醒 1否 2是 |
timeoutRemindTarget | body | String | N | 超时提醒致:1可处理人,2部门负责人,3全部 |
timeoutRemind | body | String | N | 提醒文案 |
isDone | body | String | Y | 完成后设置 |
isDoneRemind | body | String | Y | 完成后是否推送 |
custDoneRemind | body | String | N | 完成后文案,业主 |
isClosable | body | String | y | 是否可关闭工单1否2是 |
isCloseRemind | body | String | N | 是否推送关闭消息1否2是 |
custCloseRemind | body | String | N | 客户端关闭消息 |
transformTimes | body | int | N | 允许转单次数 |
isTransform | body | String | Y | 是否允许转单1否2是 |
isFallback | body | String | Y | 是否允许回退1否2是 |
isSuspend | body | String | Y | 是否允许挂起1否2是 |
suspendTime | body | date | N | 挂起时间 |
suspendTimeout | body | int | N | 挂起时长,小时 |
请求Body描述(非Form表单数据)
{
id:"1",
nodeName:"派单"
orderNo:"2",
nodeCode:"A0001",
participateRolesName:"部门负责人",
participateRolesId:"xxx1",
timeoutHour:"20",
timeoutMinute"23",
isAutoSubmit:"1",
autoSubmitHour:"20",
autoSubmitMinute:"23",
acceptRemind:"接单后提示语",
isTimeoutRemind:"1",
timeoutRemindTarget:1,
timeoutRemind:"提醒文案xxx",
isDone:2,
isDoneRemind:2,
custDoneRemind:"完成后文案,业主,",
isClosable:1,
isCloseRemind:2,
custCloseRemind:"客户端关闭消息",
transformTimes:2,
isTransform:2,
isFallback:2,
isSuspend:2,
suspendTime :"2021-19-02",
suspendTimeout:29
}
返回信息
返回参数类型
JSON
返回参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
code | 顶层 | STRING | 是 | 响应码标识 |
message | 顶层 | STRING | 是 | 响应消息文本 |
data | 顶层 | JSONObject | 是 | 响应数据对象 |
返回结果示例
{
"code": "200",
"message": "success",
"data": {
}
}
API调用
1.4: 流程设置-模板删除
描述
请求信息
HTTP协议:HTTP,HTTPS
uri:/v1/workorder/user/remove/{id}
方法:POST
请求参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
id | body | Long | y | 工单id |
请求Body描述(非Form表单数据)
{
id:"1"
}
返回信息
返回参数类型
JSON
返回参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
code | 顶层 | STRING | 是 | 响应码标识 |
message | 顶层 | STRING | 是 | 响应消息文本 |
data | 顶层 | JSONObject | 是 | 响应数据对象 |
返回结果示例
{
"code": "200",
"message": "success",
"data": {
}
}
API调用
1.5: 工单状态-状态轨迹
描述
请求信息
HTTP协议:HTTP,HTTPS
uri:/v1/workorder/user/status/list
方法:POST
请求参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
id | body | Long | y | 工单id |
sendOrderPersonType | body | Long | y | 派单人类型 1员工 2客户 |
isAsc | body | Long | N | true:升序, false:降序, 默认升序 |
请求Body描述(非Form表单数据)
{
id:"1",
sendOrderPersonType:"1",
"isAsc":false
}
返回信息
返回参数类型
JSON
返回参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
code | 顶层 | STRING | 是 | 响应码标识 |
message | 顶层 | STRING | 是 | 响应消息文本 |
data | 顶层 | JSONObject | 是 | 响应数据对象 |
status | data | String | 是 | 工单状态 |
createTime | data | Date | 是 | 日期 |
返回结果示例
{
"message": "Ok",
"code": 200,
"data": [
{
"id": 1,
"workorderId": 1,
"isRead": "",
"status": "待接单",
"statusTxt": null,
"isDeleted": "0",
"createBy": "liaojf1",
"createTime": "2021-01-01T06:00:00.000+00:00",
"updateBy": "liaojf17",
"updateTime": null,
"createById": null,
"updateById": null,
"type": 1,
"sortNo": null,
"workorderNo": null
}
]
}
API调用
1.6: 模板设计-通过templateId获取流程设计中的列表
描述
请求信息
HTTP协议:HTTP,HTTPS
uri:/v1/workorder/user/nodeList/{id}
方法:POST
请求参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
id | body | Long | y | 工单id |
请求Body描述(非Form表单数据)
返回信息
返回参数类型
JSON
返回参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
返回结果示例
{
"message": "Ok",
"code": 200,
"data": [
{
"id": 1,
"workorderTemplateId": 0,
"workorderId": null,
"hasNodeForm": "2",
"nodeName": "登记",
"orderNo": "1",
"nodeCode": "A0001",
"participateRolesName": "前台",
"participateRolesId": "",
"timeoutHour": null,
"timeoutMinute": null,
"isAutoSubmit": "1",
"autoSubmitHour": null,
"autoSubmitMinute": "",
"acceptRemind": "接单后提示语",
"isDeleted": "0",
"createBy": null,
"createTime": "2021-12-17T01:10:48.000+00:00",
"updateBy": null,
"updateTime": "2021-12-27T00:50:39.000+00:00",
"createById": null,
"updateById": null,
"isTimeoutRemind": "1",
"timeoutRemindTarget": "1",
"timeoutRemind": "超时啦,快来处理咯",
"isDone": "1",
"isDoneRemind": "1",
"custDoneRemind": "",
"isClosable": "1",
"isCloseRemind": "1",
"custCloseRemind": "",
"transformTimes": 5,
"isTransform": "1",
"isFallback": "1",
"isSuspend": "1",
"suspendTime": null,
"suspendTimeout": 1,
"fields": [
{
"nodeFieldRel": null,
"field": {
"id": 1,
"type": "input",
"fieldName": "项目名称",
"extraInfo": "",
"isDeleted": "0",
"createBy": "pz0001",
"createTime": "2021-12-24T09:04:06.000+00:00",
"updateBy": null,
"updateTime": null,
"createById": null,
"updateById": null,
"fieldCode": "xmmc",
"formId": null
},
"fieldValue": null
},
{
"nodeFieldRel": null,
"field": {
"id": 2,
"type": "input",
"fieldName": "受理类型",
"extraInfo": "",
"isDeleted": "0",
"createBy": "pz0001",
"createTime": "2021-12-24T09:20:23.000+00:00",
"updateBy": "pz0001",
"updateTime": "2021-12-24T09:20:45.000+00:00",
"createById": null,
"updateById": null,
"fieldCode": "sllx",
"formId": null
},
"fieldValue": null
},
{
"nodeFieldRel": null,
"field": {
"id": 3,
"type": "input",
"fieldName": "房号信息",
"extraInfo": "",
"isDeleted": "0",
"createBy": "pz0001",
"createTime": "2021-12-24T10:03:05.000+00:00",
"updateBy": null,
"updateTime": null,
"createById": null,
"updateById": null,
"fieldCode": "fhxx",
"formId": null
},
"fieldValue": null
},
{
"nodeFieldRel": null,
"field": {
"id": 4,
"type": "input",
"fieldName": "报单人",
"extraInfo": "",
"isDeleted": "0",
"createBy": "pz0001",
"createTime": "2021-12-24T10:03:18.000+00:00",
"updateBy": null,
"updateTime": null,
"createById": null,
"updateById": null,
"fieldCode": "bdr",
"formId": null
},
"fieldValue": null
},
{
"nodeFieldRel": null,
"field": {
"id": 5,
"type": "input",
"fieldName": "报单电话",
"extraInfo": "",
"isDeleted": "0",
"createBy": "pz0001",
"createTime": "2021-12-24T10:03:34.000+00:00",
"updateBy": null,
"updateTime": null,
"createById": null,
"updateById": null,
"fieldCode": "bddh",
"formId": null
},
"fieldValue": null
},
{
"nodeFieldRel": null,
"field": {
"id": 5,
"type": "input",
"fieldName": "报单电话",
"extraInfo": "",
"isDeleted": "0",
"createBy": "pz0001",
"createTime": "2021-12-24T10:03:34.000+00:00",
"updateBy": null,
"updateTime": null,
"createById": null,
"updateById": null,
"fieldCode": "bddh",
"formId": null
},
"fieldValue": null
}
]
},
{
"id": 2,
"workorderTemplateId": 0,
"workorderId": null,
"hasNodeForm": "2",
"nodeName": "派单",
"orderNo": "2",
"nodeCode": "A0002",
"participateRolesName": "前台",
"participateRolesId": "",
"timeoutHour": null,
"timeoutMinute": null,
"isAutoSubmit": "1",
"autoSubmitHour": null,
"autoSubmitMinute": "",
"acceptRemind": "接单后提示语",
"isDeleted": "0",
"createBy": null,
"createTime": "2021-12-17T06:11:10.000+00:00",
"updateBy": null,
"updateTime": "2021-12-26T18:53:37.000+00:00",
"createById": null,
"updateById": null,
"isTimeoutRemind": "1",
"timeoutRemindTarget": "1",
"timeoutRemind": "超时啦,快来处理咯",
"isDone": "1",
"isDoneRemind": "1",
"custDoneRemind": "",
"isClosable": "1",
"isCloseRemind": "1",
"custCloseRemind": "",
"transformTimes": 5,
"isTransform": "1",
"isFallback": "1",
"isSuspend": "1",
"suspendTime": null,
"suspendTimeout": 1,
"fields": null
},
{
"id": 3,
"workorderTemplateId": 0,
"workorderId": null,
"hasNodeForm": "2",
"nodeName": "操作",
"orderNo": "3",
"nodeCode": "A0003",
"participateRolesName": "饭桶,小红帽",
"participateRolesId": "96988,96207",
"timeoutHour": 2,
"timeoutMinute": 4,
"isAutoSubmit": "2",
"autoSubmitHour": 4,
"autoSubmitMinute": "6",
"acceptRemind": "接单后提示语",
"isDeleted": "0",
"createBy": null,
"createTime": "2021-12-20T01:35:42.000+00:00",
"updateBy": "杨观超",
"updateTime": "2021-12-31T20:35:29.000+00:00",
"createById": null,
"updateById": "10005",
"isTimeoutRemind": "2",
"timeoutRemindTarget": "1",
"timeoutRemind": "提醒文案",
"isDone": "2",
"isDoneRemind": "1",
"custDoneRemind": "完成后文案,业主",
"isClosable": "2",
"isCloseRemind": "2",
"custCloseRemind": "客户端关闭消息",
"transformTimes": 10,
"isTransform": "2",
"isFallback": "2",
"isSuspend": "2",
"suspendTime": null,
"suspendTimeout": 12,
"fields": null
},
{
"id": 4,
"workorderTemplateId": 0,
"workorderId": null,
"hasNodeForm": "2",
"nodeName": "处理",
"orderNo": "4",
"nodeCode": "A0004",
"participateRolesName": "小红帽,呆呆,设备设施模块管理员",
"participateRolesId": "96207,96014,89980",
"timeoutHour": 4,
"timeoutMinute": 5,
"isAutoSubmit": "2",
"autoSubmitHour": 7,
"autoSubmitMinute": "8",
"acceptRemind": "接单后提示语",
"isDeleted": "0",
"createBy": null,
"createTime": "2021-12-20T01:35:52.000+00:00",
"updateBy": "杨观超",
"updateTime": "2021-12-31T20:23:50.000+00:00",
"createById": null,
"updateById": "10005",
"isTimeoutRemind": "2",
"timeoutRemindTarget": "1,2",
"timeoutRemind": "提醒文案6",
"isDone": "2",
"isDoneRemind": "2",
"custDoneRemind": "完成后文案,业主12",
"isClosable": "2",
"isCloseRemind": "2",
"custCloseRemind": "客户端关闭消息9",
"transformTimes": 10,
"isTransform": "2",
"isFallback": "2",
"isSuspend": "2",
"suspendTime": null,
"suspendTimeout": 11,
"fields": null
},
{
"id": 5,
"workorderTemplateId": 0,
"workorderId": null,
"hasNodeForm": "2",
"nodeName": "确认",
"orderNo": "5",
"nodeCode": "A0005",
"participateRolesName": "饭桶,小红帽",
"participateRolesId": "96988,96207",
"timeoutHour": null,
"timeoutMinute": null,
"isAutoSubmit": "1",
"autoSubmitHour": null,
"autoSubmitMinute": "",
"acceptRemind": "接单后提示语",
"isDeleted": "0",
"createBy": null,
"createTime": "2021-12-20T01:36:02.000+00:00",
"updateBy": "杨观超",
"updateTime": "2021-12-31T16:34:05.000+00:00",
"createById": null,
"updateById": "10005",
"isTimeoutRemind": "1",
"timeoutRemindTarget": "1",
"timeoutRemind": "提醒文案",
"isDone": "2",
"isDoneRemind": "2",
"custDoneRemind": "完成后文案,业主123",
"isClosable": "1",
"isCloseRemind": "1",
"custCloseRemind": "客户端关闭消息",
"transformTimes": 10,
"isTransform": "1",
"isFallback": "1",
"isSuspend": "1",
"suspendTime": null,
"suspendTimeout": 24,
"fields": null
},
{
"id": 6,
"workorderTemplateId": 0,
"workorderId": null,
"hasNodeForm": "2",
"nodeName": "评价",
"orderNo": "6",
"nodeCode": "A0006",
"participateRolesName": "前台",
"participateRolesId": "1",
"timeoutHour": null,
"timeoutMinute": null,
"isAutoSubmit": "1",
"autoSubmitHour": null,
"autoSubmitMinute": "",
"acceptRemind": "接单后提示语",
"isDeleted": "0",
"createBy": null,
"createTime": "2021-12-20T01:36:12.000+00:00",
"updateBy": null,
"updateTime": null,
"createById": null,
"updateById": null,
"isTimeoutRemind": "1",
"timeoutRemindTarget": "1",
"timeoutRemind": "提醒文案",
"isDone": "1",
"isDoneRemind": "1",
"custDoneRemind": "完成后文案,业主",
"isClosable": "1",
"isCloseRemind": "1",
"custCloseRemind": "客户端关闭消息",
"transformTimes": 10,
"isTransform": "1",
"isFallback": "1",
"isSuspend": "1",
"suspendTime": null,
"suspendTimeout": 24,
"fields": null
},
{
"id": 7,
"workorderTemplateId": 0,
"workorderId": null,
"hasNodeForm": "2",
"nodeName": "回访",
"orderNo": "7",
"nodeCode": "A0007",
"participateRolesName": "前台",
"participateRolesId": "1",
"timeoutHour": null,
"timeoutMinute": null,
"isAutoSubmit": "1",
"autoSubmitHour": null,
"autoSubmitMinute": "",
"acceptRemind": "接单后提示语",
"isDeleted": "0",
"createBy": null,
"createTime": "2021-12-20T01:36:28.000+00:00",
"updateBy": null,
"updateTime": null,
"createById": null,
"updateById": null,
"isTimeoutRemind": "1",
"timeoutRemindTarget": "1",
"timeoutRemind": "提醒文案",
"isDone": "1",
"isDoneRemind": "1",
"custDoneRemind": "完成后文案,业主",
"isClosable": "1",
"isCloseRemind": "1",
"custCloseRemind": "客户端关闭消息",
"transformTimes": 10,
"isTransform": "1",
"isFallback": "1",
"isSuspend": "1",
"suspendTime": null,
"suspendTimeout": 24,
"fields": null
}
]
}
API调用
1.7: 流程模板-节点更新
描述
请求信息
HTTP协议:HTTP,HTTPS
uri: /v1/workorder/admin/node/node-update
方法:POST
请求参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
id | body | Long | y | id |
nodeName | body | string | y | 节点名称 |
orderNo | body | string | y | 排序号 |
nodeCode | body | String | y | 节点编码 |
participateRolesName | body | String | y | 参与角色名称,逗号隔开 |
participateRolesId | body | String | y | 参与角色ID,逗号隔开 |
timeoutHour | body | int | n | 时长,小时 |
timeoutMinute | body | int | n | 时长,分钟 |
isAutoSubmit | body | String | y | 是否超时自动提交 |
autoSubmitHour | body | int | N | 自动提交时长,小时 |
autoSubmitMinute | body | String | N | 自动提交时长,分钟 |
acceptRemind | body | String | N | 接单后提示语 |
isTimeoutRemind | body | String | Y | 超时是否提醒 1否 2是 |
timeoutRemindTarget | body | String | N | 超时提醒致:1可处理人,2部门负责人,3全部 |
timeoutRemind | body | String | N | 提醒文案 |
isDone | body | String | Y | 完成后设置 |
isDoneRemind | body | String | Y | 完成后是否推送 |
custDoneRemind | body | String | N | 完成后文案,业主 |
isClosable | body | String | y | 是否可关闭工单1否2是 |
isCloseRemind | body | String | N | 是否推送关闭消息1否2是 |
custCloseRemind | body | String | N | 客户端关闭消息 |
transformTimes | body | int | N | 允许转单次数 |
isTransform | body | String | Y | 是否允许转单1否2是 |
isFallback | body | String | Y | 是否允许回退1否2是 |
isSuspend | body | String | Y | 是否允许挂起1否2是 |
suspendTime | body | date | N | 挂起时间 |
suspendTimeout | body | int | N | 挂起时长,小时 |
请求Body描述(非Form表单数据)
{
id:"1",
nodeName:"派单"
orderNo:"2",
nodeCode:"A0001",
participateRolesName:"部门负责人",
participateRolesId:"xxx1",
timeoutHour:"20",
timeoutMinute"23",
isAutoSubmit:"1",
autoSubmitHour:"20",
autoSubmitMinute:"23",
acceptRemind:"接单后提示语",
isTimeoutRemind:"1",
timeoutRemindTarget:1,
timeoutRemind:"提醒文案xxx",
isDone:2,
isDoneRemind:2,
custDoneRemind:"完成后文案,业主,",
isClosable:1,
isCloseRemind:2,
custCloseRemind:"客户端关闭消息",
transformTimes:2,
isTransform:2,
isFallback:2,
isSuspend:2,
suspendTime :"2021-19-02",
suspendTimeout:29
}
返回信息
返回参数类型
JSON
返回参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
id | body | Long | y | id |
nodeName | body | string | y | 节点名称 |
orderNo | body | string | y | 排序号 |
nodeCode | body | String | y | 节点编码 |
participateRolesName | body | String | y | 参与角色名称,逗号隔开 |
participateRolesId | body | String | y | 参与角色ID,逗号隔开 |
timeoutHour | body | int | n | 时长,小时 |
timeoutMinute | body | int | n | 时长,分钟 |
isAutoSubmit | body | String | y | 是否超时自动提交 |
autoSubmitHour | body | int | N | 自动提交时长,小时 |
autoSubmitMinute | body | String | N | 自动提交时长,分钟 |
acceptRemind | body | String | N | 接单后提示语 |
isTimeoutRemind | body | String | Y | 超时是否提醒 1否 2是 |
timeoutRemindTarget | body | String | N | 超时提醒致:1可处理人,2部门负责人,3全部 |
timeoutRemind | body | String | N | 提醒文案 |
isDone | body | String | Y | 完成后设置 |
isDoneRemind | body | String | Y | 完成后是否推送 |
custDoneRemind | body | String | N | 完成后文案,业主 |
isClosable | body | String | y | 是否可关闭工单1否2是 |
isCloseRemind | body | String | N | 是否推送关闭消息1否2是 |
custCloseRemind | body | String | N | 客户端关闭消息 |
transformTimes | body | int | N | 允许转单次数 |
isTransform | body | String | Y | 是否允许转单1否2是 |
isFallback | body | String | Y | 是否允许回退1否2是 |
isSuspend | body | String | Y | 是否允许挂起1否2是 |
suspendTime | body | date | N | 挂起时间 |
suspendTimeout | body | int | N | 挂起时长,小时 |
返回结果示例
{
id:"1",
nodeName:"派单"
orderNo:"2",
nodeCode:"A0001",
participateRolesName:"部门负责人",
participateRolesId:"xxx1",
timeoutHour:"20",
timeoutMinute"23",
isAutoSubmit:"1",
autoSubmitHour:"20",
autoSubmitMinute:"23",
acceptRemind:"接单后提示语",
isTimeoutRemind:"1",
timeoutRemindTarget:1,
timeoutRemind:"提醒文案xxx",
isDone:2,
isDoneRemind:2,
custDoneRemind:"完成后文案,业主,",
isClosable:1,
isCloseRemind:2,
custCloseRemind:"客户端关闭消息",
transformTimes:2,
isTransform:2,
isFallback:2,
isSuspend:2,
suspendTime :"2021-19-02",
suspendTimeout:29
}
API调用
1.8: 工单节点-通过工工单id获取当前节点的配置信息
描述
请求信息
HTTP协议:HTTP,HTTPS
uri:/v1/workorder/admin/node/workorder/{id}
方法:POST
请求参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
id | body | Long | y | 工单id |
请求Body描述(非Form表单数据)
返回信息
返回参数类型
JSON
返回参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
isFallback | 顶层 | STRING | 是 | 是否允许回退1否2是 |
isSuspend | 顶层 | STRING | 是 | 是否允许挂起1否2是 |
isTransform | 顶层 | STRING | 是 | 是否允许转单1否2是 |
is_closable | 顶层 | STRING | 是 | 是否允许关闭1否2是 |
返回结果示例
{
"code": "200",
"message": "success",
"data":
{
"isFallback": “1”,
"isSuspend": “1”,
"isTransform": “1”,
"is_closable":"1"
}
}
API调用
1.9: 工单节点-通过工单id获取当前状态信息
描述
请求信息
HTTP协议:HTTP,HTTPS
uri:/v1/workorder/user/status/byWorkId/{id}
方法:POST
请求参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
id | body | Long | y | 工单id |
请求Body描述(非Form表单数据)
返回信息
返回参数类型
JSON
返回参数
名称 | 位置 | 类型 | 必填 | 描述 |
---|---|---|---|---|
id | 顶层 | STRING | 是 | 状态id |
node | 顶层 | STRING | 是 | 节点名 |
status | 顶层 | STRING | 是 | 状态 |
返回结果示例
{
"message": "Ok",
"code": 200,
"data": {
"id": 13,
"workorderId": 1,
"nodeId": 0,
"isRead": "1",
"node": "接单",
"status": "待接单",
"statusTxt": "完成接单",
"clientStatus": "处理中",
"clientStatusTxt": "您的工单正在处理中",
"isDeleted": null,
"createBy": null,
"createTime": "2022-01-06 09:47:17",
"updateBy": null,
"updateTime": "2022-01-06 09:47:19",
"createById": null,
"updateById": null,
"type": 1,
"sortNo": null,
"workorderNo": 111,
"tenantId": null
}
}