文档
测试

获取虫情数据

POST
agro_monitor/http/getBugList.action

接口描述

获取虫情测报灯数据

请求参数

参数名
类型
描述
必填
token
String
token令牌
必填
iDisplayStart
String
分页 页码
必填
iDisplayLength
String
分页 条数
必填
deviceType
String
类型(3.CQ10 9 .CQ12)
必填

响应参数

参数名
类型
描述
必填
code
String
状态(200成功)
必填
result
String
状态信息
必填
message
map
返回数据
必填
total
String
总条数
必填
pageNum
String
当前页码
必填
bugDatas
ArrayList
数据集合
必填
bugAnalysis
ArrayList
必填
dataIndex
String
标号(不同的虫子独立从1开始)
必填
dataType
String
虫子类型名称
必填
dataSize
String
成虫或幼虫(参数可以忽略,adult 成虫)
必填
style
Map
虫子标注信息和位置
必填
backgroundColor
String
RGB颜色
必填
top
String
位置 top(左上角为0,0)
必填
left
String
位置 left(左上角为0,0)
必填
deviceType
String
设备类型
必填
monitorId
String
数据Id(删除使用)
必填
environments
ArrayList
环境参数(需要设备加装传感器)
必填
bugNum
String
虫子数量
必填
deviceCode
String
设备编号
必填
deviceName
String
设备名称
必填
deviceId
String
设备id
必填
picPath
String
图片路径
必填
areaId
String
区域Id
必填
collecTime
String
采集时间
必填
exhibitionPath
String
图片分析结果路径
必填
token
String
token令牌
必填

返回实例

请求: http://nyzbwlw.com/agro_monitor/http/getBugList.action?token=34UDDlilDxCzed0cUBgAJg==&iDisplayStart=0&iDisplayLength=1&deviceType=9 返回: { "result": "success", "code": "100", "message": { "total": 21, "pageNum": 1, "bugDatas": [ { "bugAnalysis": [ { "dataIndex": "1", "dataType": "草地螟", "dataSize": "adult", "style": { "backgroundColor": "rgb(51, 255, 51)", "top": "121px", "left": "325px" } }, { "dataIndex": "2", "dataType": "草地螟", "dataSize": "adult", "style": { "backgroundColor": "rgb(51, 255, 51)", "top": "411px", "left": "742px" } } ], "deviceType": 9, "monitorId": "220335131758984519", "environments": [], "bugNum": 6, "deviceCode": "20201002001", "deviceId": "210708211650598017", "deviceName": "履带测报灯", "collecTime": "2022-06-08 20:36:09", "picPath": "https://zzoukeqi.oss-cn-beijing.aliyuncs.com/agro_monitor/upload/xyjdcs/CQ12/023.jpg", "areaId": "210708211455246966", "exhibitionPath": "https://zzoukeqi.oss-cn-beijing.aliyuncs.com/agro_monitor/exhibt/upload/xyjdcs/CQ12/023.jpg", "areaName": "智慧农业", "picId": "220335131758984519" } ], "token": "34UDDlilDxCzed0cUBgAJg==" } }