Appearance
设备日95带宽收益查询接口
- 功能:分页查询设备日95带宽收益查询接口。
- 请求路径:/v1/bill/queryDeviceRevenueByPage
- 请求方式:GET
- 请求参数:
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| sn | string | 否 | 设备号,多个设备号用,号隔开,最多支持100个 |
| workDate | string | 是 | 统计日期 yyyy-MM-dd |
| pageNo | int | 是 | 第几页,从1开始 |
| pageSize | int | 是 | 每页数量,最大值为100 |
- 返回值:
| 名称 | 类型 | 描述 |
|---|---|---|
| total | int | 数据总数 |
| pages | int | 总页数 |
| size | int | 每页数量 |
| current | int | 第几页 |
| records | list | 设备数据列表 |
records返回值:
| 名称 | 类型 | 描述 |
|---|---|---|
| sn | string | 设备号 |
| workDate | string | 统计日期 yyyy-MM-dd |
| contributeBandwidth | Double | 贡献带宽 |
| revenue | Double | 收益 |
| revenueStatus | Integer | 收益状态(0未结算,1正常,2异常) |
| remark | string | 备注 |
返回示例:
json
//正常请求:
//http code 0
{
"code": 0,
"message": "操作成功!",
"data": {
"records": [
{
"sn": "xxxxxxx",
"workDate": "2025-08-28",
"contributeBandwidth": 0.0,
"revenue": 0.0,
"revenueStatus": 2,
"remark": "总打点数小于240,不参与收益计算。总打点数小于240,不参与收益计算。"
},
{
"sn": "xxxxxxx",
"workDate": "2025-08-28",
"contributeBandwidth": 3.012,
"revenue": 0.25,
"revenueStatus": 1,
"remark": null
},
{
"sn": "xxxxxxx",
"workDate": "2025-08-28",
"contributeBandwidth": 44.096,
"revenue": 3.66,
"revenueStatus": 1,
"remark": null
}
...
],
"total": 973,
"size": 20,
"current": 1,
"orders": [],
"hitCount": false,
"searchCount": true,
"pages": 49
}
}json
//异常请求:
//http code 4xx/5xx
{
"code": 500,
"message": "签名失败",
"data": null
}