获取任务集合
请求
- 功能:获取任务的集合
- 方法:
GET
- 接口说明:
/api/robot-task
json
GET "http://127.0.0.1:7100/api/robot-task"
1
参数介绍
Name | Type | Description |
---|---|---|
id | string | 用id筛选任务 |
outOrderNo | string | 筛选外部订单号,默认为空 |
createdOnStart | string | 筛选创建时间大于等于该时间的任务 |
createdOnEnd | string | 筛选创建时间小于等于该时间的任务 |
pageNo | integer | 页面索引(Default value : 1) |
pageSize | integer | 页面包含任务的最大数量 |
示例
查询1月份的所有任务,包含所选时间,每页一条数据。
http
GET "http://127.0.0.1:7100/api/robot-task?pageNo=1&pageSize=1&createdOnStart=2022-01-01&createdOnEnd=2022-01-31"
1
响应
json
{
"total": 40,
"page": [
{
"id": "6320243f1149e33d763cb664",
"def": "",
"createdOn": "2022-09-13T06:33:35.697Z",
"modifiedOn": "2022-09-13T06:34:39.266Z",
"finishedOn": "2022-09-13T06:34:39.267Z",
"duration": 63570,
"state": 1000,
"outOrderNo": null,
"persistedVariables": {},
"workTypes": [],
"workStations": [],
"priority": 0,
"noTransport": false,
"errorInfo": "",
"transports": [
{
"taskId": "6320243f1149e33d763cb664",
"routeOrderName": "6320243f1149e33d763cb666",
"category": "",
"deadline": null,
"intendedRobot": "",
"processingRobot": "WB-CPD02",
"processingRobotAssignedOn": "2022-09-13T06:33:38.800Z",
"seqId": null,
"seqStartSentOn": null,
"timeCost": 0,
"finishedOn": "2022-09-13T06:34:39.262Z",
"state": 1000,
"failReason": "",
"stages": [
{
"state": 1000,
"routeState": "FINISHED",
"location": "Check01",
"area": "",
"operation": "Wait",
"properties": "[]",
"blockReason": "",
"notice": "",
"timeCost": 63541,
"finishedOn": "2022-09-13T06:34:39.256Z"
}
]
}
]
}
],
"pageNo": 1,
"pageSize": 1,
"pageNum": 40
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
任务基本字段
Name | Type | Description |
---|---|---|
total | integer | 总条目数量 |
page | array | 任务信息数组 |
pageNo | integer | 页码 |
pageSize | integer | 每页数量 |
pageNum | integer | 总页数 |
page 常用字段
Name | Type | Description |
---|---|---|
id | string | 任务唯一ID |
createdOn | string | 创建时间 |
finishedOn | string | 结束时间 |
duration | integer | 持续时间,单位:毫秒 |
state | integer | 任务状态(0:创建,1000:成功,1800:撤销,2000:失败) |
outOrderNo | string | 外部单号 |
transports | array | 机器人信息集合(用来记录任务的机器人信息) |
priority | integer | 优先级(0:普通,10:急,30:特急) |
transports 结构常用字段
Name | Type | Description |
---|---|---|
routeOrderName | string | transport id |
processingRobot | string | 执行的 AGV 名称(值为 null 则表示还没接单) |
processingRobotAssignedOn | string | 分配 AGV 的时间 |
stages | array | 表示这个 transport 途径的工作站集合 |
stages 结构常用字段
Name | Type | Description |
---|---|---|
location | string | 工作站名称 |
operation | string | 执行的动作 |
timeCost | integer | 到这个工作站执行完动作的耗时,单位毫秒 |
state | integer | stage 状态,0:创建;600:执行中;1000:成功;2000:失败。 |
最近更新 2022/11/28
有帮助
没帮助