2. 获取生猪价格指数统计数据项
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>获取生猪价格指数统计数据项</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://127.0.0.1:48080/server/open/common/price/pig/now/statistics?areaId=-1</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 style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">areaId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>地区ID</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: 0,
&quot;data&quot;: {
&quot;now&quot;: &quot;2024-03-05&quot;,
&quot;list&quot;: [
{
&quot;monthPercentage&quot;: &quot;-7.81%&quot;,
&quot;unit&quot;: &quot;元/公斤&quot;,
&quot;price&quot;: &quot;14.04&quot;,
&quot;oldPrice&quot;: 0.00,
&quot;oldPriceCompare&quot;: &quot;=&quot;,
&quot;yearPercentage&quot;: &quot;-11.31%&quot;,
&quot;type&quot;: &quot;1&quot;,
&quot;title&quot;: &quot;生猪(外三元)&quot;
},
{
&quot;monthPercentage&quot;: &quot;-9.08%&quot;,
&quot;unit&quot;: &quot;元/公斤&quot;,
&quot;price&quot;: &quot;14.02&quot;,
&quot;oldPrice&quot;: -0.04,
&quot;oldPriceCompare&quot;: &quot;-&quot;,
&quot;yearPercentage&quot;: &quot;-9.49%&quot;,
&quot;type&quot;: &quot;2&quot;,
&quot;title&quot;: &quot;生猪(内三元)&quot;
},
{
&quot;monthPercentage&quot;: &quot;-7.39%&quot;,
&quot;unit&quot;: &quot;元/公斤&quot;,
&quot;price&quot;: &quot;13.66&quot;,
&quot;oldPrice&quot;: -0.06,
&quot;oldPriceCompare&quot;: &quot;-&quot;,
&quot;yearPercentage&quot;: &quot;-9.30%&quot;,
&quot;type&quot;: &quot;3&quot;,
&quot;title&quot;: &quot;生猪(土杂猪)&quot;
},
{
&quot;monthPercentage&quot;: &quot;-2.05%&quot;,
&quot;unit&quot;: &quot;元/吨&quot;,
&quot;price&quot;: &quot;2486.00&quot;,
&quot;oldPrice&quot;: 26.00,
&quot;oldPriceCompare&quot;: &quot;+&quot;,
&quot;yearPercentage&quot;: &quot;-15.41%&quot;,
&quot;type&quot;: &quot;4&quot;,
&quot;title&quot;: &quot;玉米(饲料原料)&quot;
},
{
&quot;monthPercentage&quot;: &quot;-0.21%&quot;,
&quot;unit&quot;: &quot;元/吨&quot;,
&quot;price&quot;: &quot;3392.00&quot;,
&quot;oldPrice&quot;: -4.00,
&quot;oldPriceCompare&quot;: &quot;-&quot;,
&quot;yearPercentage&quot;: &quot;-28.14%&quot;,
&quot;type&quot;: &quot;5&quot;,
&quot;title&quot;: &quot;豆粕(饲料原料)&quot;
}
],
&quot;pigGrainRatio&quot;: &quot;5.64 : 1&quot;
},
&quot;msg&quot;: &quot;&quot;
}</code></pre>
<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;">data.now</td>
<td style="text-align: left;">String</td>
<td>时间</td>
</tr>
<tr>
<td style="text-align: left;">data.list.monthPercentage</td>
<td style="text-align: left;">String</td>
<td>月环比</td>
</tr>
<tr>
<td style="text-align: left;">data.list.unit</td>
<td style="text-align: left;">String</td>
<td>单位</td>
</tr>
<tr>
<td style="text-align: left;">data.list.price</td>
<td style="text-align: left;">String</td>
<td>价格</td>
</tr>
<tr>
<td style="text-align: left;">data.list.oldPrice</td>
<td style="text-align: left;">String</td>
<td>同比昨日价格</td>
</tr>
<tr>
<td style="text-align: left;">data.list.oldPriceCompare</td>
<td style="text-align: left;">String</td>
<td>+ 比昨日价格高,-比昨日价格低,=与昨日价格相等</td>
</tr>
<tr>
<td style="text-align: left;">data.list.yearPercentage</td>
<td style="text-align: left;">String</td>
<td>年同比</td>
</tr>
<tr>
<td style="text-align: left;">data.list.type</td>
<td style="text-align: left;">String</td>
<td>类型</td>
</tr>
<tr>
<td style="text-align: left;">data.list.title</td>
<td style="text-align: left;">String</td>
<td>标题</td>
</tr>
<tr>
<td style="text-align: left;">data.pigGrainRatio</td>
<td style="text-align: left;">String</td>
<td>猪粮比</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>