虫情测报灯-害虫统计
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>虫情数据展示</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xgkj.hljnyxx.com/dongnongBackend/index.php//Home/Insect/getInsectAnalyseInfo</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">deviceId</td>
<td style="text-align: left;">是</td>
<td>虫情设备编号</td>
</tr>
<tr>
<td style="text-align: left;">startTime</td>
<td style="text-align: left;">否</td>
<td>开始时间</td>
</tr>
<tr>
<td style="text-align: left;">endTime</td>
<td style="text-align: left;">否</td>
<td>结束时间</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;查询成功&quot;,
&quot;data&quot;: {
&quot;xAxisData&quot;: [
&quot;2023-03-22 13:38:28&quot;,
&quot;2023-04-13 16:03:19&quot;,
&quot;2023-04-13 16:03:27&quot;,
&quot;2023-04-13 16:03:28&quot;,
&quot;2023-04-13 16:13:54&quot;,
&quot;2023-04-13 16:14:02&quot;,
&quot;2023-04-13 16:15:09&quot;
],
&quot;yAxisData&quot;: [
2,
2,
2,
2,
1,
1,
3
],
&quot;pieChartData&quot;: [
{
&quot;value&quot;: 6,
&quot;name&quot;: &quot;甜菜白带野螟46.2%&quot;
},
{
&quot;value&quot;: 6,
&quot;name&quot;: &quot;棉大卷叶螟46.2%&quot;
},
{
&quot;value&quot;: 1,
&quot;name&quot;: &quot;棉小卷叶螟7.7%&quot;
}
],
&quot;insectList&quot;: [
{
&quot;insectName&quot;: &quot;甜菜白带野螟&quot;,
&quot;insectCount&quot;: 6
},
{
&quot;insectName&quot;: &quot;棉大卷叶螟&quot;,
&quot;insectCount&quot;: 6
},
{
&quot;insectName&quot;: &quot;棉小卷叶螟&quot;,
&quot;insectCount&quot;: 1
}
]
}
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">xAxisData</td>
<td>虫情数据图表横坐标</td>
</tr>
<tr>
<td style="text-align: left;">yAxisData</td>
<td>虫情数据图表纵坐标</td>
</tr>
<tr>
<td style="text-align: left;">pieChartData</td>
<td>饼状图信息</td>
</tr>
<tr>
<td style="text-align: left;">insectList</td>
<td>参数列表信息</td>
</tr>
<tr>
<td style="text-align: left;">insectName</td>
<td>虫子名称</td>
</tr>
<tr>
<td style="text-align: left;">insectCount</td>
<td>虫子数量</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>如果 startTime 和 endTime 参数不传,默认展示前一天的数据</li>
</ul>