# 功能详情
根据设备号获取当前设备的病害风险报告。
# 请求地址和方法
- 请求地址
https://www.sdzhiot.top/api/v3/disease/get-report
- 请求方法
GET
# 请求参数
| 字段名 | 字段类型 | 字段说明 | 是否必须 |
|---|---|---|---|
| sno | String | 设备号 | Y |
# 样例输入
/api/v3/disease/get-report?sno=063948483917
# 返回data字段说明
| 字段名 | 字段类型 | 字段说明 |
|---|---|---|
| sno | String | 设备号 |
| diseaseCount | int | 监测病害数量 |
| diseases | List | 监测病害 |
其中diseases的数据结构说明如下
| 字段名 | 字段类型 | 字段说明 |
|---|---|---|
| diseaseName | String | 病害名称 |
| diseaseReport | List | 病害报告 |
| totalScore | String | 病害总分 |
| reportTime | long | 病害报告时间 |
其中diseaseReport的数据结构说明如下
| 字段名 | 字段类型 | 字段说明 |
|---|---|---|
| factor | String | 诱病因子 |
| threshold | String | 危险阈值 |
| method | String | 测量方式 |
| val | String | 当前值 |
# 样例输出
{
"code": 0,
"data": {
"sno": "33F7FDE34FC4",
"diseaseCount": 2,
"diseases": [
{
"diseaseName": "小麦条锈病",
"diseaseReport": [
{
"factor": "冠层温度",
"threshold": "12-18℃",
"method": "红外测温(1m高度)",
"val": "0.0"
},
{
"factor": "空气相对湿度",
"threshold": ">80%持续12h",
"method": "1m高度传感器",
"val": "0.0"
},
{
"factor": "风速",
"threshold": "<1.0m/s",
"method": "1m高度风速计",
"val": "4.2"
}
],
"totalScore": 4.2,
"reportTime": 1750842435000
},
{
"diseaseName": "赤霉病",
"diseaseReport": [
{
"factor": " 温度",
"threshold": "风险温度范围:12-30°C",
"method": "精密铂电阻温度传感器或数字温度传感器",
"val": "0.0"
},
{
"factor": "湿度",
"threshold": "80-90%:线性增加 90%以上:高风险",
"method": "电容式湿度传感器",
"val": "0.0"
},
{
"factor": "降雨",
"threshold": "0-2 mm:中等风险(0.5) 2 mm以上:高风险(1.0)",
"method": "翻斗式雨量计",
"val": "0.0"
},
{
"factor": "风速",
"threshold": "风速≤4 m/s:线性增加 风速≥4 m/s:高风险",
"method": "三杯式风速传感器或超声波风速传感器",
"val": "0.0"
}
],
"totalScore": 0.0,
"reportTime": 1764672589000
}
]
},
"msg": ""
}
# 返回码
| 返回码 | 返回消息 | 说明 |
|---|---|---|
| 0 | 操作成功 | 请求成功 |
| 500 | 服务器错误 | 服务端异常 |
| 10001 | 参数为空或格式不正确 | 参数错误 |
| 10002 | appKey不存在 | 确认appKey是否正确 |
← 获取病害设备最新数据 获取病害风险等级 →