1.URL
http://124.223.60.234:8080/system/maintenance/downtime/queryMaintenanceDowntimeList
2.请求参数
2.1请求头
token:对应登录验证成功后,data里面对应的tokenId
2.2.参数示例
{
"vehicleIds":["A9663EC8624649AC9DD7CD6507A5FDC3","E98E3532A36745C99A8EF34298291005"],
"key":""
"startTime":"2025-11-01 00:00:00",
"endTime":"2025-11-20 00:00:00",
"pageNum":1,
"pageSize":20
}
2.3.参数说明
| 字段 | 类型 | 说明 | 是否必须 |
|---|---|---|---|
| vehicleIds | List | 资产唯一标识集合 | Y |
| startTime | String | 开始时间(UTC) | Y |
| endTime | String | 结束时间(UTC) | Y |
| pageNum | int | 分页查询当前页码,默认1 | Y |
| pageSize | int | 分页查询每页显示条数,默认20 | Y |
3.接口应答
3.1.返回示例
{
"code": 200,
"message": "Operation succeeded",
"data": {
"total": 2,
"size": 1,
"data": [
{
"id": "2B5D0752A68F4F58B360D1A6CB1027C8",
"orgId": "E86CB5248B36484E924AA0A97783B767",
"orgName": "TEST",
"vehicleId": "123AFB7B48D641BC95793514A931E03B",
"vehicleNum": "9906",
"vehicleIcon": 5,
"startTime": "2025-11-10 00:00:00",
"endTime": "2025-12-01 00:00:00",
"duration": 1814400,
"currentDuration": -272472,
"reason": "车辆送检,环保检测",
"status": 2,
"createTime": "2025-11-13 01:56:50",
"creatorId": "F940B79790004404AAC277418FC71C5D",
"creator": "LEAVE"
},
{
"id": "4FB67286C5C742F9A26D0E48E2DA7B09",
"orgId": "E86CB5248B36484E924AA0A97783B767",
"orgName": "TEST",
"vehicleId": "123AFB7B48D641BC95793514A931E03B",
"vehicleNum": "9906",
"vehicleIcon": 5,
"startTime": "2025-11-10 00:00:00",
"endTime": "2025-12-01 00:00:00",
"duration": 1814400,
"currentDuration": -272472,
"reason": "车辆过检测",
"status": 1,
"createTime": "2025-11-13 01:56:50",
"creatorId": "F940B79790004404AAC277418FC71C5D",
"creator": "LEAVE"
}
]
}
}
3.2.返回结果说明
| 字段 | 类型 | 说明 |
|---|---|---|
| code | int | 返回状态 |
| message | String | 返回结果描述 |
| data | object | 返回结果体 |
data说明
| 字段 | 类型 | 说明 |
|---|---|---|
| total | String | 总条数 |
| size | String | 多少页 |
| data | object | 每页的结果集合 |
data说明
| 字段 | 类型 | 说明 |
|---|---|---|
| id | String | 唯一标识 |
| orgId | String | 公司唯一标识 |
| orgName | String | 公司名称 |
| vehicleId | String | 车辆唯一标识 |
| vehicleId | String | 车牌号 |
| vehicleIcon | int | 车辆图标 |
| startTime | String | 停运开始时间 |
| endTime | String | 停运结束时间 |
| duration | int | 停运总时长,单位:s |
| currentDuration | int | 停运开始时间,距离当前的时长,如果是负数,则代表已经开始了多久了,跟status组合显示,比如:进行中,已开始:HH:mm:ss ,如果是已完成,则只需要显示已完成即可 |
| reason | String | 停运原因 |
| status | int | 0:未开始;1:进行中;2:已完成 |
| createTime | String | 创建时间 |
| creatorId | String | 创建用户唯一标识 |
| creator | String | 创建用户 |
Author:admin Create time:2025-11-13 11:34
Last editor:admin Update time:2025-11-24 14:17
Last editor:admin Update time:2025-11-24 14:17