查询定时抽检计划
场景描述
查询定时抽检计划
接口方法
POST
接口URI
https://域名/apiaccess/CCSQM/rest/ccisqm/v1/regularqualitytask/queryQualityTask,例如域名是service.besclouds.com
请求说明
序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
1 | Content-Type | string | False | 固定填 application/json; charset=UTF-8。 |
2 | x-app-key | string | False | appKey标识 |
3 | Authorization | string | True | 鉴权字段,内容格式为: Bearer +tokenByAKSK接口的返回值中AccessToken(Bearer后有空格) |
4 | x-UserId | string | False | 操作员标识 可在登录后,进入员工管理页面,查看接口返回的userId |
序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
1.1 | page | integer | True | 第几页 |
1.2 | rows | integer | True | 每页条数 |
响应说明
- 响应状态码: 200
序号 | 名称 | 参数类型 | 是否必选 | 说明 |
|---|---|---|---|---|
1.1 | total | integer | False | 总计条数 |
1.2 | list | array[object] | True | 定时抽检计划列表 |
1.2.1 | nextExecutionTimeStr | number | False | 下次执行时间 |
1.2.2 | qiqtCreateTimeStr | number | False | 创建时间 |
1.2.3 | qiqtCreater | string | False | 创建人 |
1.2.4 | qiqtCycleType | string | False | 重复方式:
|
1.2.5 | qiqtEndTimeStr | string | False | 结束时间:当qiq_end_type 为2 时有效 |
1.2.6 | qiqtEndType | string | False | 结束条件: 1.次数 2.时间 |
1.2.7 | qiqtEndTypeStr | string | False | 结束条件 |
1.2.8 | qiqtExecutionTimes | number | False | 执行次数 |
1.2.9 | qiqtId | string | False | 定时抽检任务ID |
1.2.10 | qiqtName | string | False | 定时任务名称 |
1.2.11 | qiqtStartTimeStr | number | False | 开始时间 |
1.2.12 | qiqtStatus | string | False | 状态: 1.停止;2.运行 |
1.2.13 | qiqtTotalTimes | number | False | 定时任务执行次数 |
1.2.14 | interactionType | string | False | 质检任务类型
|
1.3 | resultCode | string | False | 返回码
|
1.4 | resultDesc | string | False | 返回描述 |
- 响应状态码: 400
错误的请求:请检查请求路径及参数。
- 响应状态码: 401
未授权:1. 请确认是否购买了相关服务。 2. 请联系客服人员检查您账号的当前状态。
- 响应状态码: 404
请求的内容未找到:请检查请求的路径。
- 响应状态码: 500
业务失败:请依次确认您请求中各参数的取值。
错误码
无。
报文样例
- 场景描述:查询定时抽检计划
Content-Type:application/json x-app-key:xxxx-xxxx-xxxx-xxxx-xxxx x-UserId:xxxx Authorization:Bearer ********************************
请求参数:
{ "page": 1, "rows": 10 }响应头:
Content-Type: application/json;charset=UTF-8
响应参数:{ "total": 2, "list": [{ "qiqtStartTimeStr": "2020-12-30 10:27:08", "qiqtEndType": "2", "qiqtEndTypeStr": "时间限制", "qiqtId": "954637368599307266", "nextExecutionTimeStr": "2020-12-31 10:27:08", "qiqtName": "regulartask", "qiqtExecutionTimes": 0, "qiqtTotalTimes": 1, "qiqtCycleType": "每天", "qiqtStatus": "2", "qiqtCreater": "xxxx", "qiqtCreateTimeStr": "2020-12-30 10:27:33", "qiqtEndTimeStr": "2021-01-02 10:27:08", "interactionType": "0" }, { "qiqtStartTimeStr": "2020-11-23 11:30:00", "qiqtEndType": "2", "qiqtEndTypeStr": "时间限制", "qiqtId": "933182094016018433", "nextExecutionTimeStr": "2020-12-29 11:30:00", "qiqtName": "long1123", "qiqtExecutionTimes": 9, "qiqtTotalTimes": 1, "qiqtCycleType": "每天", "qiqtStatus": "1", "qiqtCreater": "xxxx", "qiqtCreateTimeStr": "2020-11-23 10:22:48", "qiqtEndTimeStr": "2020-12-30 10:24:50", "interactionType": "0" }], "resultCode": "0408000", "resultDesc": "操作成功" }

