对比棒料
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>对比棒料接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://47.111.70.10:8091/collector-siot-smb/api/smb/contrastTactics</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>是否必须</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">smbCode</td>
<td style="text-align: left;">String</td>
<td>是</td>
<td>对比棒料编号</td>
</tr>
<tr>
<td style="text-align: left;">deviceId</td>
<td style="text-align: left;">Long</td>
<td>是</td>
<td>检测设备id</td>
</tr>
<tr>
<td style="text-align: left;">tacticsId</td>
<td style="text-align: left;">Long</td>
<td>是</td>
<td>检测策略id</td>
</tr>
<tr>
<td style="text-align: left;">contrastSmbItems</td>
<td style="text-align: left;">String[]</td>
<td>是</td>
<td>被比对棒料编号数组</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
"msg": "操作成功",
"code": 200,
"data": [
{
"id": 2,
"tacticsId": 1,
"sort": 3,
"coordinateId1": 3,
"coordinateName1": "K6",
"coordinateId2": 4,
"coordinateName2": "K4",
"threshold": 220,
"isDeleted": null,
"deviationValue": 30,
"ids": null,
"smbCode": "11232,22",
"parentSmbCode": null,
"dataValue": 310,
"deviationRate": 50
},
{
"id": 2,
"tacticsId": 1,
"sort": 3,
"coordinateId1": 3,
"coordinateName1": "K6",
"coordinateId2": 4,
"coordinateName2": "K4",
"threshold": 220,
"isDeleted": null,
"deviationValue": 30,
"ids": null,
"smbCode": "iQ",
"parentSmbCode": "11232,22",
"dataValue": 310,
"deviationRate": 50
},
{
"id": 2,
"tacticsId": 1,
"sort": 3,
"coordinateId1": 3,
"coordinateName1": "K6",
"coordinateId2": 4,
"coordinateName2": "K4",
"threshold": 220,
"isDeleted": null,
"deviationValue": 30,
"ids": null,
"smbCode": "Qi",
"parentSmbCode": "11232,22",
"dataValue": 310,
"deviationRate": 50
},
{
"id": 2,
"tacticsId": 1,
"sort": 3,
"coordinateId1": 1,
"coordinateName1": "K1",
"coordinateId2": 2,
"coordinateName2": "K2",
"threshold": 220,
"isDeleted": null,
"deviationValue": 30,
"ids": null,
"smbCode": "11232,22",
"parentSmbCode": null,
"dataValue": 310,
"deviationRate": 50
},
{
"id": 2,
"tacticsId": 1,
"sort": 3,
"coordinateId1": 1,
"coordinateName1": "K1",
"coordinateId2": 2,
"coordinateName2": "K2",
"threshold": 240,
"isDeleted": null,
"deviationValue": 20,
"ids": null,
"smbCode": "iQ",
"parentSmbCode": "11232,22",
"dataValue": 320,
"deviationRate": 50
},
{
"id": 2,
"tacticsId": 1,
"sort": 3,
"coordinateId1": 1,
"coordinateName1": "K1",
"coordinateId2": 2,
"coordinateName2": "K2",
"threshold": 220,
"isDeleted": null,
"deviationValue": 30,
"ids": null,
"smbCode": "Qi",
"parentSmbCode": "11232,22",
"dataValue": 310,
"deviationRate": 50
},
{
"id": 2,
"tacticsId": 1,
"sort": 3,
"coordinateId1": 5,
"coordinateName1": "K5",
"coordinateId2": 2,
"coordinateName2": "K2",
"threshold": 220,
"isDeleted": null,
"deviationValue": 30,
"ids": null,
"smbCode": "11232,22",
"parentSmbCode": null,
"dataValue": 310,
"deviationRate": 50
}
],
"isSuccess": true
}</code></pre>
<h5>返回data集合参数说明</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;">id</td>
<td style="text-align: left;">Long</td>
<td>点位id</td>
</tr>
<tr>
<td style="text-align: left;">Long</td>
<td style="text-align: left;">long</td>
<td>策略id</td>
</tr>
<tr>
<td style="text-align: left;">coordinateId1</td>
<td style="text-align: left;">long</td>
<td>点位ID1</td>
</tr>
<tr>
<td style="text-align: left;">coordinateName1</td>
<td style="text-align: left;">String</td>
<td>点位名称1</td>
</tr>
<tr>
<td style="text-align: left;">sort</td>
<td style="text-align: left;">Long</td>
<td>序号</td>
</tr>
<tr>
<td style="text-align: left;">coordinateId2</td>
<td style="text-align: left;">long</td>
<td>点位ID2</td>
</tr>
<tr>
<td style="text-align: left;">parentSmbCode</td>
<td style="text-align: left;">String</td>
<td>父级石磨棒编号(标识区分)</td>
</tr>
<tr>
<td style="text-align: left;">coordinateName2</td>
<td style="text-align: left;">String</td>
<td>点位名称2</td>
</tr>
<tr>
<td style="text-align: left;">dataValue</td>
<td style="text-align: left;">BigDecimal</td>
<td>数据值(单位V) 注:拼接V</td>
</tr>
<tr>
<td style="text-align: left;">threshold</td>
<td style="text-align: left;">BigDecimal</td>
<td>阈值(单位V) 注:拼接V</td>
</tr>
<tr>
<td style="text-align: left;">deviationRate</td>
<td style="text-align: left;">BigDecimal</td>
<td>实际偏差率(单位%) 注:拼接%</td>
</tr>
<tr>
<td style="text-align: left;">deviationValue</td>
<td style="text-align: left;">BigDecimal</td>
<td>允许偏差率(单位%) 注:拼接%</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>