接口说明
设备查询
完整的API接口示例
https://v7.cmsv8.com/StandardApiAction_selectDeviceList.action?jsession=66d754dd7f41473dbd2&pagin=1&pageRecords=10¤tPage=1
请求参数
| 参数名称 |
参数类型 |
必须 |
示例 |
参数含义 |
| jsession |
string |
是 |
66d754dd7f41473dbd2 |
会话号 |
| pagin |
string |
否 |
1 |
分页参数,JSON格式,并进行URLEncode |
| pageRecords |
int |
是 |
10 |
每页记录数,默认为10 |
| currentPage |
int |
是 |
1 |
当前页数,默认为1 |
返回参数
| 参数名称 | 参数类型 | 参数含义 |
|---|
| result | number | 接口状态码,0为正常 其他为异常(详情参见:[错误码说明](/helpCenter/doc/index.html?isStudy=1&pageType=3&docId=1321&type=1 "错误码说明")) |
| deviceList | object | |
| pageList | array | |
| | id | number | 设备ID |
| | devIDNO | string | 设备编号 |
| | companyId | number | 公司ID |
| | companyName | string | 公司名称 |
| | devType | number | 设备类型 |
| | serialID | string | 设备序列号 |
| | actualCardNumber | string | |
| | brand | string | 设备品牌 |
| | model | string | 设备型号 |
| | install | number | 安装 1已安装 0未安装 |
| | stlTm | number | 绑定车辆时间 |
| | stlTmStr | string | |
| | vehiIdno | string | 车牌号码 |
| | simInfo | string | sim卡信息 |
| | chnName | string | 通道名称 |
| | stlTmEx | string | |
| | stlTmExStr | string | |
| | factoryDevType | number | 厂家设备类型 |
| | checkStatus | string | |
| | checkTime | string | |
| | checkTimeStr | string | |
| | ifMainDefense | number | |
| pagination | object | |
| | currentPage | number | |
| | totalPages | number | |
| | pageRecords | number | |
| | totalRecords | number | |
| | startRecord | number | |
| | endRecord | number | |
| | nextPage | number | |
| | previousPage | number | |
| | hasNextPage | boolean | |
| | hasPreviousPage | boolean | |
| | primaryKey | string | |
| | sortParams | string | |
| | pagin | string | |
| | rp | string | |
| | query | string | |
| | qtype | string | |
| | page | boolean | |
| | directQuery | boolean | |
| fail | boolean | |
| queryParam | string | |
| resultExist | boolean | |
返回示例
{
"result": 0,
"deviceList": {
"pageList": [
{
"id": 3,
"devIDNO": "013300000001",
"companyId": 1,
"companyName": "ttx",
"devType": 7,
"serialID": null,
"actualCardNumber": null,
"brand": null,
"model": null,
"install": 1,
"stlTm": 1731640193000,
"stlTmStr": "2024-11-15",
"vehiIdno": "66666",
"simInfo": null,
"chnName": "CH1,CH2,CH3,CH4",
"stlTmEx": null,
"stlTmExStr": null,
"factoryDevType": 3,
"checkStatus": null,
"checkTime": null,
"checkTimeStr": null,
"ifMainDefense": 0
},
{
"id": 4,
"devIDNO": "013300000002",
"companyId": 1,
"companyName": "ttx",
"devType": 7,
"serialID": "",
"actualCardNumber": "",
"brand": null,
"model": "",
"install": 1,
"stlTm": 1732083322000,
"stlTmStr": "2024-11-20",
"vehiIdno": "粤S77777",
"simInfo": null,
"chnName": "CH1,CH2,CH3,CH4",
"stlTmEx": null,
"stlTmExStr": null,
"factoryDevType": 0,
"checkStatus": null,
"checkTime": null,
"checkTimeStr": null,
"ifMainDefense": 0
}
],
"pagination": {
"currentPage": 1,
"totalPages": 1,
"pageRecords": 10,
"totalRecords": 3,
"startRecord": 0,
"endRecord": 0,
"nextPage": 1,
"previousPage": 1,
"hasNextPage": false,
"hasPreviousPage": false,
"primaryKey": "id",
"sortParams": null,
"pagin": null,
"rp": null,
"query": null,
"qtype": null,
"page": false,
"directQuery": false
},
"fail": false,
"queryParam": null,
"resultExist": true
}
}