设备自检接口

简要描述
  • 设备自检接口
请求URL
  • http://119.29.24.72:9230/assets/equipmentselfcheck
请求方式
  • POST
参数
参数名 必选 类型 说明
truckno string 车号
返回示例
// 成功返回
{
    "code": 200,
    "success": true,
    "data": [],
    "msg": "操作成功"
}
// Gps设备离线, 载重设备离线
{
    "code": 200,
    "success": true,
    "data": [
        {
            "id": -1,
            "truckno": "",
            "deviceno": "",
            "intime": "2021-11-21 19:42:36",
            "alarmType": 4,
            "alarmContence": "Gps设备离线",
            "isDeleted": -1,
            "alarmtime": "",
            "triptimeid": -1
        },
        {
            "id": -1,
            "truckno": "",
            "deviceno": "",
            "intime": "2021-10-22 16:40:29",
            "alarmType": 5,
            "alarmContence": "载重设备离线",
            "isDeleted": -1,
            "alarmtime": "",
            "triptimeid": -1
        }
    ],
    "msg": "操作成功"
}
// Gps设备异常, 载重设备异常
{
    "code": 200,
    "success": true,
    "data": [
       {
            "id": -1,
            "truckno": "",
            "deviceno": "",
            "intime": "2021-11-20 19:22:36",
            "alarmType": 2,
            "alarmContence": "Gps设备异常",
            "isDeleted": -1,
            "alarmtime": "",
            "triptimeid": -1
        },
        {
            "id": -1,
            "truckno": "",
            "deviceno": "",
            "intime": "2021-11-22 19:40:29",
            "alarmType": 3,
            "alarmContence": "载重设备异常",
            "isDeleted": -1,
            "alarmtime": "",
            "triptimeid": -1
        }
    ],
    "msg": "操作成功"
}
// Gps设备离线
{
    "code": 200,
    "success": true,
    "data": [
        {
            "id": -1,
            "truckno": "",
            "deviceno": "",
            "intime": "2021-11-21 19:42:36",
            "alarmType": 4,
            "alarmContence": "Gps设备离线",
            "isDeleted": -1,
            "alarmtime": "",
            "triptimeid": -1
        }
    ],
    "msg": "操作成功"
}
// Gps设备异常
{
    "code": 200,
    "success": true,
    "data": [
        {
            "id": -1,
            "truckno": "",
            "deviceno": "",
            "intime": "2021-11-20 19:22:36",
            "alarmType": 2,
            "alarmContence": "Gps设备异常",
            "isDeleted": -1,
            "alarmtime": "",
            "triptimeid": -1
        }
    ],
    "msg": "操作成功"
}
// 载重设备离线
{
    "code": 200,
    "success": true,
    "data": [
        {
            "id": -1,
            "truckno": "",
            "deviceno": "",
            "intime": "2021-10-22 16:40:29",
            "alarmType": 5,
            "alarmContence": "载重设备离线",
            "isDeleted": -1,
            "alarmtime": "",
            "triptimeid": -1
        }
    ],
    "msg": "操作成功"
}
// 载重设备异常
{
    "code": 200,
    "success": true,
    "data": [
        {
            "id": -1,
            "truckno": "",
            "deviceno": "",
            "intime": "2021-11-22 19:40:29",
            "alarmType": 3,
            "alarmContence": "载重设备异常",
            "isDeleted": -1,
            "alarmtime": "",
            "triptimeid": -1
        }
    ],
    "msg": "操作成功"
}
返回参数说明
参数名 类型 说明
id Long id
truckno string 车牌号
deviceno string 设备号
intime date 保存时间
alarmType Integer 报警类型:2:GPS设备异常, 3: 载重设备异常, 4: GPS离线, 5: 载重设备离线
alarmContence string 报警内容
alarmtime date 报警时间
triptimeid long 趟次id
备注
  • 更多返回错误代码请看首页的错误代码描述