Appearance
9.2 根据工单id查询工单详情
接口说明:
Method | URL | ContentType |
---|---|---|
GET | /api/v1/question/get | application/json |
请求参数说明:
字段名 | 类型 | 是否必填 | 示例值 | 描述 |
---|---|---|---|---|
questionId | Integer | 是 | 11 | 工单ID |
请求示例:
GET /api/v1/question/get?questionId=11
返回参数说明:
参数 | 类型 | 描述 |
---|---|---|
id | Integer | 工单ID |
ownerId | String | 归属人Id |
ownerName | String | 归属人名称 |
currentSolverId | String | 当前协助人Id |
currentSolverName | String | 当前协助人名称 |
projectId | Integer | 项目Id |
title | String | 标题 |
orderId | String | 订单号 |
questionTypeId | Integer | 工单类型Id |
questionStatus | String | 工单状态 |
auditResult | String | 审核结果 |
auditComment | String | 审核意见 |
createTime | DateTime | 创建时间 |
updateTime | DateTime | 修改时间 |
closeTime | DateTime | 关单时间 |
closeBy | String | 关单操作人 |
closeById | String | 关单操作人id |
chats | List<ChatRespDTO> | 工单会话记录 |
ChatRespDTO 参数说明:
参数 | 类型 | 描述 |
---|---|---|
id | Integer | 会话记录ID |
questionId | Integer | 工单ID |
no | Integer | 序号 |
roleType | String | 角色类型 |
roleId | String | 角色ID |
roleName | String | 角色名称 |
content | String | 聊天内容 |
files | String | 附件URL列表 |
createTime | DateTime | 创建时间 |
响应示例:
json
{
"success": true,
"code": "000",
"message": "成功",
"data": {
"id": 11,
"ownerId": "72",
"ownerName": "BBB",
"currentSolverId": null,
"currentSolverName": null,
"projectId": 707,
"title": "商品缺少配件",
"orderId": "20250812001",
"questionTypeId": 1,
"questionStatus": "Init",
"auditResult": null,
"auditComment": null,
"createTime": "2025-08-12 13:43:14",
"updateTime": "2025-08-12 13:43:14",
"closeTime": null,
"closeBy": null,
"closeById": null,
"chats": [
{
"id": 17,
"questionId": 11,
"no": 1,
"roleType": "questioner",
"roleId": "72",
"roleName": "BBB",
"content": "商品缺少配件",
"files": "http://example.com/img1.jpg,http://example.com/img2.jpg",
"createTime": "2025-08-12 13:43:14"
}
]
}
}