Skip to content
On this page

9.2 根据工单id查询工单详情

接口说明:

MethodURLContentType
GET/api/v1/question/getapplication/json

请求参数说明:

字段名类型是否必填示例值描述
questionIdInteger11工单ID

请求示例:

GET /api/v1/question/get?questionId=11

返回参数说明:

参数类型描述
idInteger工单ID
ownerIdString归属人Id
ownerNameString归属人名称
currentSolverIdString当前协助人Id
currentSolverNameString当前协助人名称
projectIdInteger项目Id
titleString标题
orderIdString订单号
questionTypeIdInteger工单类型Id
questionStatusString工单状态
auditResultString审核结果
auditCommentString审核意见
createTimeDateTime创建时间
updateTimeDateTime修改时间
closeTimeDateTime关单时间
closeByString关单操作人
closeByIdString关单操作人id
chatsList<ChatRespDTO>工单会话记录

ChatRespDTO 参数说明:

参数类型描述
idInteger会话记录ID
questionIdInteger工单ID
noInteger序号
roleTypeString角色类型
roleIdString角色ID
roleNameString角色名称
contentString聊天内容
filesString附件URL列表
createTimeDateTime创建时间

响应示例:

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"
      }
    ]
  }
}