Updated on 2023-09-27 GMT+08:00

POST /CCSQM/rest/ccisqm/v1/qualityitem/queryQualityHistory

Scenario

This interface is invoked to query historical handling records of an appeal.

Method

POST

URI

https://Domain name/apiaccess/CCSQM/rest/ccisqm/v1/qualityitem/queryQualityHistory (For example, the domain name is service.besclouds.com.)

Request Description

Table 1 Request header parameters

No.

Parameter

Type

Mandatory or Not

Description

1

Content-Type

String

No

The value is fixed to application/json; charset=UTF-8.

2

x-app-key

String

No

App key

3

Authorization

String

Yes

Authentication field. The format is Bearer {Value of AccessToken returned by the tokenByAkSk interface}. (A space is required after Bearer.)

4

x-UserId

String

Yes

Operator ID

You can sign in to the system and go to the employee management page to view the value of userId returned by an interface.

Table 2 Request body parameters

No.

Parameter

Type

Mandatory or Not

Description

1.1

qualityTaskInfoId

String

Yes

Appeal task ID

Response Description

  • Status code: 200
Table 3 Response body parameters

No.

Parameter

Type

Mandatory or Not

Description

1.1

showAssgin

Boolean

No

Whether to display the button for assigning a previous node handler. The options are true (yes) and false (no).

1.2

workflowNodeList

Array [Object]

No

Handling flow history

1.2.1

nodeName

String

No

Handling node name

1.2.2

nodeId

String

No

Handling node ID

1.2.3

remark

String

No

Remarks

1.2.4

createTime

String

No

Handling time, in yyyy-MM-dd format

1.2.5

handler

String

No

Current node handler

1.2.6

conclusion

String

No

Handling result. The options are Approve and Reject.

1.2.7

assignHistoryList

Array [Object]

No

Flow reassignment history

1.2.7.1

assignee

String

No

Reassignment initiator

1.2.7.2

newHandler

String

No

New handler (assignee)

1.2.7.3

originalHandler

String

No

Original handler

1.2.7.4

assignTime

String

No

Reassignment time, in yyyy-MM-dd format

1.3

canHandle

Boolean

No

Whether the approval permission is available. The options are true (yes) and false (no).

1.4

showReassgin

Boolean

No

Whether to display the button for reassigning a handler. The options are true (yes) and false (no).

  • Status code: 400

    Incorrect request. Check the request path and parameters.

  • Status code: 401

    Unauthorized operation. 1. Check whether you have purchased related services. 2. Contact customer service to check the status of your account.

  • Status code: 404

    The requested content is not found. Check the request path.

  • Status code: 500

    Business failure. Check the values of parameters in the request.

Error Codes

None

Example

  • Scenario: Query historical handling records of an appeal.

    Request header:

    x-app-key:************************************  
    X-UserID:1611917095665261978  
    Authorization:Bearer ********************************

    Request parameters:

    {
    	"qualityTaskInfoId": "16239231508327803347"
    }

    Response parameters:

    {
    	"showAssgin": false,
    	"workflowNodeList": [{
    		"nodeName": "Create complaint",
    		"handler": "zxry0611",
    		"createTime": "2021-06-11 14:29:57",
    		"remark": "aa"
    	}, {
    		"conclusion": "Approve",
    		"nodeName": "Review",
    		"handler": "zxzg0611",
    		"createTime": "2021-06-11 14:29:58",
    		"assignHistoryList": [{
    			"originalHandler": "zxzg0611",
    			"newHandler": "zxzg0611",
    			"assignee": "zxzg0611",
    			"assignTime": "2021-06-11 14:34:20"
    		}],
    		"remark": "a1"
    	}, {
    		"conclusion": "Approve",
    		"nodeName": "Process",
    		"handler": "zjzg0611",
    		"createTime": "2021-06-11 14:53:10",
    		"assignHistoryList": [{
    			"originalHandler": "zjzg0611",
    			"newHandler": "zjzg0611",
    			"assignee": "zjzg0611",
    			"assignTime": "2021-06-11 15:05:27"
    		}],
    		"remark": "a1"
    	}, {
    		"conclusion": "Approve",
    		"nodeName": "Check",
    		"handler": "zxry0611",
    		"createTime": "2021-06-11 15:05:34",
    		"remark": "11"
    	}, {
    		"nodeName": "Finish",
    		"handler": "zxry0611",
    		"createTime": "2021-06-11 15:06:20",
    		"remark": null
    	}],
    	"canHandle": false,
    	"showReassgin": false
    }