扫一扫-设备详情信息
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>点击扫一扫获取设备详情信息</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xgkj.hljnyxx.com/dongnongBackend/index.php//Home/Equipment/getEquipmentDetailInfoByNo</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;">no</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;use_info&quot;: {
&quot;currentLocation&quot;: &quot;A-1&quot;,
&quot;currentUser&quot;: &quot;周学,孙学生&quot;,
&quot;currentEndTime&quot;: &quot;2023-11-01 00:00:00&quot;
},
&quot;maintain_info&quot;: [
{
&quot;create_time&quot;: &quot;2023-04-06 10:59:23&quot;,
&quot;content&quot;: &quot;维修了设备&quot;,
&quot;maintain_name&quot;: &quot;张工&quot;,
&quot;record_name&quot;: &quot;李工&quot;
},
{
&quot;create_time&quot;: &quot;2023-03-02 10:30:30&quot;,
&quot;content&quot;: &quot;维修了设备&quot;,
&quot;maintain_name&quot;: &quot;张工&quot;,
&quot;record_name&quot;: &quot;赵工&quot;
}
],
&quot;base_info&quot;: {
&quot;id&quot;: &quot;1&quot;,
&quot;no&quot;: &quot;dn001&quot;,
&quot;name&quot;: &quot;温度传感器&quot;,
&quot;manufacturer_tel&quot;: &quot;13326335988&quot;,
&quot;manufacturer&quot;: &quot;温传感器制造商&quot;,
&quot;model&quot;: &quot;温型号一&quot;,
&quot;installer_tel&quot;: &quot;13326335988&quot;,
&quot;installer&quot;: &quot;温安装厂家一&quot;,
&quot;supplier_tel&quot;: &quot;13326335988&quot;,
&quot;supplier&quot;: &quot;温传感器供货商&quot;,
&quot;install_time&quot;: &quot;2023-03-02&quot;,
&quot;install_location&quot;: &quot;地点一&quot;,
&quot;classify&quot;: &quot;0&quot;,
&quot;picurl&quot;: &quot;/Public/Upload/Equipment/2023-04-07/642f72c7cde0b.png&quot;,
&quot;func_id&quot;: &quot;34&quot;,
&quot;greenhouse_id&quot;: &quot;1&quot;,
&quot;parent_id&quot;: &quot;5&quot;,
&quot;is_fault&quot;: &quot;0&quot;,
&quot;is_common&quot;: &quot;0&quot;,
&quot;is_camera&quot;: &quot;0&quot;,
&quot;is_show&quot;: &quot;1&quot;,
&quot;type_id&quot;: &quot;5&quot;,
&quot;greenhouse&quot;: {
&quot;id&quot;: &quot;1&quot;,
&quot;name&quot;: &quot;温室A&quot;,
&quot;classify&quot;: &quot;1&quot;,
&quot;terminal_id&quot;: &quot;16007141&quot;,
&quot;main_valve&quot;: &quot;16&quot;,
&quot;sub_valve&quot;: &quot;5,6,7,8,9,10,11,12,13,14,15&quot;,
&quot;is_use_fertilizer&quot;: &quot;1&quot;
},
&quot;is_online&quot;: 0,
&quot;is_use&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;">use_info</td>
<td>设备当前被使用的信息</td>
</tr>
<tr>
<td style="text-align: left;">+currentLocation</td>
<td>当前使用地方</td>
</tr>
<tr>
<td style="text-align: left;">+currentUser</td>
<td>当前使用人</td>
</tr>
<tr>
<td style="text-align: left;">+currentEndTime</td>
<td>当前使用截止时间</td>
</tr>
<tr>
<td style="text-align: left;">maintain_info</td>
<td>设备维修信息</td>
</tr>
<tr>
<td style="text-align: left;">base_info</td>
<td>设备基础信息</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>应用场景:用户扫一扫之后获得的编码数据放在一个搜索框中,点击搜索后再用该数据为参数访问此接口,将信息展示到页面中(以 UI 图为主)</li>
<li>测试用例 no='dn001'</li>
</ul>