设备借出单号统计多状态(归还 退回数量)
<p>[TOC]</p>
<h5>简要描述</h5>
<h5>请求URL</h5>
<ul>
<li><code>http://172.16.14.59:8082/deviceManagement/queryAllByLimitByNumber</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<pre><code>{
&quot;username&quot;:&quot;admin&quot;,
&quot;status&quot;:[3,4,5],
&quot;pageNum&quot;:1,
&quot;pageSize&quot;:10,
&quot;borrowNumber&quot;: &quot;202304101638580000594&quot;,
&quot;times&quot;:&quot;2023-03-01 10:26:36,2023-03-20 10:26:36&quot;
}</code></pre>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: 200,
&quot;success&quot;: true,
&quot;msg&quot;: &quot;操作成功&quot;,
&quot;data&quot;: {
&quot;total&quot;: 2,
&quot;status_sum&quot;: { 各状态统计
&quot;3&quot;: 2
},
&quot;list&quot;: [
{
&quot;check_reason&quot;: null, 归还退回原因
&quot;dgh&quot;: 0, 待归还
&quot;counts&quot;: 1, 查询状态的总数
&quot;cause&quot;: &quot;给客户&quot;, 用途
&quot;th_device_models&quot;: [], 退回设备型号
&quot;device_type&quot;: 1, 设备类别
&quot;device_types&quot;: [ 借单中所有设备类别
&quot;1&quot;
],
&quot;estimate_return_time&quot;: &quot;2023-04-10 16:38:28&quot;, 预计归还
&quot;sp_device_numbers&quot;: [], 归还审批设备
&quot;borrow_number&quot;: &quot;202304101638580000594&quot;,
&quot;review_reason&quot;: null,
&quot;device_name&quot;: &quot;绝缘子憎水性检测仪绝缘子憎水性检测仪&quot;,
&quot;device_names&quot;: [
&quot;绝缘子憎水性检测仪绝缘子憎水性检测仪&quot;
],
&quot;return_time&quot;: &quot;2023-04-12 14:11:16&quot;,
&quot;sp&quot;: 0, 归还审批数量
&quot;device_numbers&quot;: [
&quot;0000000vvvvvjjjjjuuu56655&quot;
],
&quot;gh&quot;: 1, 已归还
&quot;dgh_device_numbers&quot;: [], 待归还
&quot;device_models&quot;: [ 设备型号
&quot;HB-HCA20&quot;
],
&quot;dgh_device_models&quot;: [], 待归还型号
&quot;borrow_user&quot;: 1636272960009609217,
&quot;gh_device_models&quot;: [ 归还型号
&quot;HB-HCA20&quot;
],
&quot;borrow_time&quot;: &quot;2023-04-11 16:38:24&quot;, 借用时间
&quot;th_device_numbers&quot;: [], 退回编码
&quot;th&quot;: 0, 退回数量
&quot;allcounts&quot;: 1, 单子总设备数
&quot;sp_device_models&quot;: [],归还审批型号
&quot;gh_device_numbers&quot;: [
&quot;0000000vvvvvjjjjjuuu56655&quot;
],
&quot;username&quot;: &quot;仓管&quot;, 借用人
&quot;status&quot;: 1, 单子状态(1: 完成 2: 借用中 3: 借用审核 4: 归还检查 5: 审核退回 6: 归还退回)',
&quot;all_status&quot;: [ 单子所有状态
&quot;1&quot;
]
},
{
&quot;gh&quot;: 0, 归还数量
&quot;device_model&quot;: &quot;HB-70&quot;,
&quot;check_reason&quot;: &quot;11111&quot;, 归还检查退回原因
&quot;dgh&quot;: 0,
&quot;dgh_device_numbers&quot;: [], 待归还设备
&quot;device_models&quot;: [ 设备型号
&quot;HB-70&quot;
],
&quot;counts&quot;: 3,
&quot;cause&quot;: &quot;&quot;, 用途
&quot;th_device_models&quot;: [], 退回型号
&quot;estimate_return_time&quot;: null,
&quot;dgh_device_models&quot;: [], 待归还型号
&quot;borrow_user&quot;: 1,
&quot;gh_device_models&quot;: [], 归还型号
&quot;borrow_time&quot;: &quot;2023-03-17&quot;,
&quot;borrow_number&quot;: &quot;3EF184487F14463E858F141BD94DFFE7&quot;,
&quot;th_device_numbers&quot;: [], 退回型号
&quot;review_reason&quot;: null, 借出退回原因
&quot;device_name&quot;: &quot;器具增加333332&quot;,
&quot;th&quot;: 0,
&quot;inspectorname&quot;: &quot;admin&quot;, 检查员(归还)
&quot;gh_device_numbers&quot;: [],
&quot;approvername&quot;: &quot;admin1&quot;,审批员(借出)
&quot;username&quot;: &quot;admin&quot;, 借用人
&quot;status&quot;: 4
}
]
}
}</code></pre>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>