日结-实际总现金/消耗总额-图表
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>报表接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li>` <a href="http://api-test.boka.vc/analytic/business/turnover/category/list">http://api-test.boka.vc/analytic/business/turnover/category/list</a></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;">compId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>门店id</td>
</tr>
<tr>
<td style="text-align: left;">startDate</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>开始日期 <strong>yyyy-MM-dd</strong></td>
</tr>
<tr>
<td style="text-align: left;">endDate</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>结束日期 <strong>yyyy-MM-dd</strong></td>
</tr>
<tr>
<td style="text-align: left;">queryType</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>1:实际总现金 2:消耗总额</td>
</tr>
<tr>
<td style="text-align: left;">pageNum</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>页码</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>分页大小</td>
</tr>
</tbody>
</table>
<h5>参数示例</h5>
<pre><code>{
&quot;compIds&quot;: [
&quot;5d6494c5033f9f3274eb991a&quot;
],
&quot;startDate&quot;: &quot;2024-12-01&quot;,
&quot;endDate&quot;: &quot;2024-12-13&quot;,
&quot;queryType&quot;: 1,
&quot;pageNum&quot;: 1,
&quot;pageSize&quot;: 3
}</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;">memberId</td>
<td style="text-align: left;">String</td>
<td>会员id</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">String</td>
<td>客户名称</td>
</tr>
<tr>
<td style="text-align: left;">channelCode</td>
<td style="text-align: left;">String</td>
<td>进店渠道编号</td>
</tr>
<tr>
<td style="text-align: left;">channelName</td>
<td style="text-align: left;">String</td>
<td>进店渠道名称</td>
</tr>
<tr>
<td style="text-align: left;">cashPayAmt</td>
<td style="text-align: left;">float</td>
<td>现金业绩/消耗</td>
</tr>
<tr>
<td style="text-align: left;">rightsPayAmt</td>
<td style="text-align: left;">float</td>
<td>耗卡消耗</td>
</tr>
<tr>
<td style="text-align: left;">totalAmt</td>
<td style="text-align: left;">float</td>
<td>总金额(statistics)</td>
</tr>
<tr>
<td style="text-align: left;">list</td>
<td style="text-align: left;">list</td>
<td>statistics中,客户渠道</td>
</tr>
<tr>
<td style="text-align: left;">array</td>
<td style="text-align: left;">list</td>
<td>statistics中,来源分类/消耗分类</td>
</tr>
</tbody>
</table>
<p>statistics.list说明</p>
<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;">channelCode</td>
<td style="text-align: left;">String</td>
<td>进店渠道编号</td>
</tr>
<tr>
<td style="text-align: left;">channelName</td>
<td style="text-align: left;">String</td>
<td>进店渠道名称</td>
</tr>
<tr>
<td style="text-align: left;">total</td>
<td style="text-align: left;">float</td>
<td>人数</td>
</tr>
<tr>
<td style="text-align: left;">cashPayAmt</td>
<td style="text-align: left;">float</td>
<td>现金业绩/消耗</td>
</tr>
<tr>
<td style="text-align: left;">rightsPayAmt</td>
<td style="text-align: left;">float</td>
<td>耗卡消耗</td>
</tr>
</tbody>
</table>
<p>statistics.array说明</p>
<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;">name</td>
<td style="text-align: left;">String</td>
<td>名称</td>
</tr>
<tr>
<td style="text-align: left;">totalAmt</td>
<td style="text-align: left;">float</td>
<td>总金额</td>
</tr>
<tr>
<td style="text-align: left;">cashPayAmt</td>
<td style="text-align: left;">float</td>
<td>现金业绩/消耗</td>
</tr>
<tr>
<td style="text-align: left;">rightsPayAmt</td>
<td style="text-align: left;">float</td>
<td>耗卡消耗</td>
</tr>
</tbody>
</table>
<h5>汇总-返回示例</h5>
<pre><code> {
&quot;code&quot;: 200,
&quot;result&quot;: {
&quot;hasNextPage&quot;: true,
&quot;hasPreviousPage&quot;: false,
&quot;isFirstPage&quot;: true,
&quot;isLastPage&quot;: false,
&quot;list&quot;: [
{
&quot;cashPayAmt&quot;: 1100.00000,
&quot;channelCode&quot;: &quot;miniApp&quot;,
&quot;channelName&quot;: &quot;小程序&quot;,
&quot;memberId&quot;: &quot;66449c036a45a3498149395c&quot;,
&quot;name&quot;: &quot;书琦&quot;,
&quot;rightsPayAmt&quot;: 892.80000
},
{
&quot;cashPayAmt&quot;: 902.00000,
&quot;channelCode&quot;: &quot;miniApp&quot;,
&quot;channelName&quot;: &quot;小程序&quot;,
&quot;memberId&quot;: &quot;673819268625956864&quot;,
&quot;name&quot;: &quot;aAA6_7&quot;,
&quot;rightsPayAmt&quot;: 0.00000
},
{
&quot;cashPayAmt&quot;: 676.00000,
&quot;channelCode&quot;: &quot;miniApp&quot;,
&quot;channelName&quot;: &quot;小程序&quot;,
&quot;memberId&quot;: &quot;654709286152437760&quot;,
&quot;name&quot;: &quot;王振&quot;,
&quot;rightsPayAmt&quot;: 0.00000
}
],
&quot;nextPage&quot;: 2,
&quot;pageNum&quot;: 1,
&quot;pageSize&quot;: 3,
&quot;pages&quot;: 2,
&quot;prePage&quot;: 1,
&quot;size&quot;: 0,
&quot;statistics&quot;: {
&quot;array&quot;: [
{
&quot;cashPayAmt&quot;: 63368.87000,
&quot;name&quot;: &quot;基础现金&quot;,
&quot;rightsPayAmt&quot;: 0.00000,
&quot;totalAmt&quot;: 63368.87000
},
{
&quot;cashPayAmt&quot;: 9970.00000,
&quot;name&quot;: &quot;大项现金&quot;,
&quot;rightsPayAmt&quot;: 0.00000,
&quot;totalAmt&quot;: 9970.00000
},
{
&quot;cashPayAmt&quot;: 1740.00000,
&quot;name&quot;: &quot;产品现金&quot;,
&quot;rightsPayAmt&quot;: 532.80000,
&quot;totalAmt&quot;: 2272.80000
}
],
&quot;cashPayAmt&quot;: 2934.71000,
&quot;list&quot;: [
{
&quot;cashPayAmt&quot;: 2934.71000,
&quot;channelCode&quot;: &quot;miniApp&quot;,
&quot;channelName&quot;: &quot;小程序&quot;,
&quot;rightsPayAmt&quot;: 892.80000,
&quot;total&quot;: 4
},
{
&quot;cashPayAmt&quot;: 0.00000,
&quot;channelCode&quot;: &quot;visitor&quot;,
&quot;channelName&quot;: &quot;散客&quot;,
&quot;rightsPayAmt&quot;: 0.00000,
&quot;total&quot;: 1
}
],
&quot;name&quot;: &quot;共5项&quot;,
&quot;rightsPayAmt&quot;: 892.80000,
&quot;total&quot;: 5,
&quot;totalAmt&quot;: 3827.51000
},
&quot;total&quot;: 5
},
&quot;success&quot;: true
}</code></pre>
<h5>备注</h5>
<ul>
<li>无</li>
</ul>