药品消耗列表
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>用户药品消耗列表接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/drugConsume/list</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 style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">page</td>
<td style="text-align: left;">选填</td>
<td style="text-align: left;">Integer</td>
<td>第几页</td>
</tr>
<tr>
<td style="text-align: left;">limit</td>
<td style="text-align: left;">选填</td>
<td style="text-align: left;">Integer</td>
<td>一页数量</td>
</tr>
<tr>
<td style="text-align: left;">startDate</td>
<td style="text-align: left;">选填</td>
<td style="text-align: left;">String</td>
<td>开始时间</td>
</tr>
<tr>
<td style="text-align: left;">endDate</td>
<td style="text-align: left;">选填</td>
<td style="text-align: left;">String</td>
<td>结束时间</td>
</tr>
<tr>
<td style="text-align: left;">drugType</td>
<td style="text-align: left;"><code>必填</code></td>
<td style="text-align: left;">String</td>
<td>药品类型(<code>1</code>:颗粒剂(g)/<code>2</code>:西药(包)/<code>3</code>:中成药(盒)/<code>4</code>:饮片(g)/<code>6</code>:代茶饮(包))</td>
</tr>
<tr>
<td style="text-align: left;">orderBy</td>
<td style="text-align: left;"><code>必填</code></td>
<td style="text-align: left;">String</td>
<td>排序字段(<code>默认重量</code>(drugNum)/总金额(sumMoney)/百分比(percentage+0))</td>
</tr>
<tr>
<td style="text-align: left;">sort</td>
<td style="text-align: left;"><code>必填</code></td>
<td style="text-align: left;">String</td>
<td>排序条件(asc:升序/desc:<code>默认降序</code>)</td>
</tr>
<tr>
<td style="text-align: left;">drugName</td>
<td style="text-align: left;">选填</td>
<td style="text-align: left;">String</td>
<td>药品名称</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;success&quot;: true,
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;成功&quot;,
&quot;count&quot;: 340,
&quot;data&quot;: [
{
&quot;drugId&quot;: &quot;11&quot;,
&quot;drugName&quot;: &quot;黄芪&quot;,
&quot;drugNum&quot;: &quot;220725&quot;,
&quot;drugType&quot;: &quot;1&quot;,
&quot;drugMoney&quot;: &quot;0.26&quot;,
&quot;buyingPrice&quot;: &quot;0.136&quot;,
&quot;percentage&quot;: &quot;52.31%&quot;,
&quot;sumMoney&quot;: &quot;57388.50&quot;
},
{
&quot;drugId&quot;: &quot;5&quot;,
&quot;drugName&quot;: &quot;茯苓&quot;,
&quot;drugNum&quot;: &quot;173632&quot;,
&quot;drugType&quot;: &quot;1&quot;,
&quot;drugMoney&quot;: &quot;0.227&quot;,
&quot;buyingPrice&quot;: &quot;0.05&quot;,
&quot;percentage&quot;: &quot;22.03%&quot;,
&quot;sumMoney&quot;: &quot;39414.46&quot;
},
{
&quot;drugId&quot;: &quot;17&quot;,
&quot;drugName&quot;: &quot;赤芍&quot;,
&quot;drugNum&quot;: &quot;108241&quot;,
&quot;drugType&quot;: &quot;1&quot;,
&quot;drugMoney&quot;: &quot;0.346&quot;,
&quot;buyingPrice&quot;: &quot;0.07&quot;,
&quot;percentage&quot;: &quot;20.23%&quot;,
&quot;sumMoney&quot;: &quot;37451.39&quot;
},
{
&quot;drugId&quot;: &quot;2&quot;,
&quot;drugName&quot;: &quot;当归&quot;,
&quot;drugNum&quot;: &quot;153253&quot;,
&quot;drugType&quot;: &quot;1&quot;,
&quot;drugMoney&quot;: &quot;0.238&quot;,
&quot;buyingPrice&quot;: &quot;0.047&quot;,
&quot;percentage&quot;: &quot;19.75%&quot;,
&quot;sumMoney&quot;: &quot;36474.21&quot;
},
{
&quot;drugId&quot;: &quot;20&quot;,
&quot;drugName&quot;: &quot;鸡血藤&quot;,
&quot;drugNum&quot;: &quot;178385&quot;,
&quot;drugType&quot;: &quot;1&quot;,
&quot;drugMoney&quot;: &quot;0.178&quot;,
&quot;buyingPrice&quot;: &quot;0.0425&quot;,
&quot;percentage&quot;: &quot;23.88%&quot;,
&quot;sumMoney&quot;: &quot;31752.53&quot;
},
{
&quot;drugId&quot;: &quot;18&quot;,
&quot;drugName&quot;: &quot;丹参&quot;,
&quot;drugNum&quot;: &quot;149779&quot;,
&quot;drugType&quot;: &quot;1&quot;,
&quot;drugMoney&quot;: &quot;0.173&quot;,
&quot;buyingPrice&quot;: &quot;0.09&quot;,
&quot;percentage&quot;: &quot;52.02%&quot;,
&quot;sumMoney&quot;: &quot;25911.77&quot;
},
{
&quot;drugId&quot;: &quot;3&quot;,
&quot;drugName&quot;: &quot;防风&quot;,
&quot;drugNum&quot;: &quot;55980&quot;,
&quot;drugType&quot;: &quot;1&quot;,
&quot;drugMoney&quot;: &quot;0.454&quot;,
&quot;buyingPrice&quot;: &quot;0.21&quot;,
&quot;percentage&quot;: &quot;46.26%&quot;,
&quot;sumMoney&quot;: &quot;25414.92&quot;
},
{
&quot;drugId&quot;: &quot;32&quot;,
&quot;drugName&quot;: &quot;麸炒苍术&quot;,
&quot;drugNum&quot;: &quot;71923&quot;,
&quot;drugType&quot;: &quot;1&quot;,
&quot;drugMoney&quot;: &quot;0.341&quot;,
&quot;buyingPrice&quot;: &quot;0.09&quot;,
&quot;percentage&quot;: &quot;26.39%&quot;,
&quot;sumMoney&quot;: &quot;24525.74&quot;
},
{
&quot;drugId&quot;: &quot;12&quot;,
&quot;drugName&quot;: &quot;秦艽&quot;,
&quot;drugNum&quot;: &quot;85413&quot;,
&quot;drugType&quot;: &quot;1&quot;,
&quot;drugMoney&quot;: &quot;0.281&quot;,
&quot;buyingPrice&quot;: &quot;0.17&quot;,
&quot;percentage&quot;: &quot;60.50%&quot;,
&quot;sumMoney&quot;: &quot;24001.05&quot;
},
{
&quot;drugId&quot;: &quot;4&quot;,
&quot;drugName&quot;: &quot;川牛膝&quot;,
&quot;drugNum&quot;: &quot;118133&quot;,
&quot;drugType&quot;: &quot;1&quot;,
&quot;drugMoney&quot;: &quot;0.195&quot;,
&quot;buyingPrice&quot;: &quot;0.029&quot;,
&quot;percentage&quot;: &quot;14.87%&quot;,
&quot;sumMoney&quot;: &quot;23035.94&quot;
}
],
&quot;jwt&quot;: null,
&quot;refreshToken&quot;: null
}</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;">drugId</td>
<td style="text-align: left;">String</td>
<td>药品ID</td>
</tr>
<tr>
<td style="text-align: left;">drugName</td>
<td style="text-align: left;">String</td>
<td>药品名称</td>
</tr>
<tr>
<td style="text-align: left;">buyingPrice</td>
<td style="text-align: left;">String</td>
<td>成本价</td>
</tr>
<tr>
<td style="text-align: left;">drugMoney</td>
<td style="text-align: left;">String</td>
<td>零售价</td>
</tr>
<tr>
<td style="text-align: left;">drugType</td>
<td style="text-align: left;">String</td>
<td>药品类型</td>
</tr>
<tr>
<td style="text-align: left;">drugNum</td>
<td style="text-align: left;">String</td>
<td>总数量</td>
</tr>
<tr>
<td style="text-align: left;">sumMoney</td>
<td style="text-align: left;">String</td>
<td>总金额</td>
</tr>
<tr>
<td style="text-align: left;">percentage</td>
<td style="text-align: left;">String</td>
<td>百分比</td>
</tr>
</tbody>
</table>
<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;">success</td>
<td style="text-align: left;">boolean</td>
<td>是否成功</td>
</tr>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">Integer</td>
<td>返回码</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">String</td>
<td>返回信息</td>
</tr>
<tr>
<td style="text-align: left;">count</td>
<td style="text-align: left;">Long</td>
<td>总数</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">List<T></td>
<td>返回数据</td>
</tr>
<tr>
<td style="text-align: left;">jwt</td>
<td style="text-align: left;">String</td>
<td>token数据</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>