门店营收汇总
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>报表接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li>` <a href="http://api-test.boka.vc/analytic/business/comp/business/collection">http://api-test.boka.vc/analytic/business/comp/business/collection</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;">compIds</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>查询类型 0 月报 1 年报</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-02&quot;,
&quot;endDate&quot;: &quot;2025-01-03&quot;,
&quot;pageSize&quot;: 20,
&quot;pageNum&quot;: 1,
&quot;queryType&quot;: 1
}</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;">compId</td>
<td style="text-align: left;">String</td>
<td>服务门店id</td>
</tr>
<tr>
<td style="text-align: left;">compCode</td>
<td style="text-align: left;">String</td>
<td>服务门店编号</td>
</tr>
<tr>
<td style="text-align: left;">compName</td>
<td style="text-align: left;">String</td>
<td>服务门店名称</td>
</tr>
<tr>
<td style="text-align: left;">compShortName</td>
<td style="text-align: left;">String</td>
<td>服务门店简称</td>
</tr>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">String</td>
<td>编号</td>
</tr>
<tr>
<td style="text-align: left;">outCode</td>
<td style="text-align: left;">String</td>
<td>外码</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;">categoryCode</td>
<td style="text-align: left;">String</td>
<td>统计分类编号</td>
</tr>
<tr>
<td style="text-align: left;">categoryName</td>
<td style="text-align: left;">String</td>
<td>统计分类名称</td>
</tr>
<tr>
<td style="text-align: left;">trialType</td>
<td style="text-align: left;">Integer</td>
<td>是否体验项目 1:是,0:否</td>
</tr>
<tr>
<td style="text-align: left;">cooperationFlag</td>
<td style="text-align: left;">Integer</td>
<td>是否大项 1:是,0:否</td>
</tr>
<tr>
<td style="text-align: left;">departCode</td>
<td style="text-align: left;">String</td>
<td>归属部门编号</td>
</tr>
<tr>
<td style="text-align: left;">departName</td>
<td style="text-align: left;">String</td>
<td>归属部门名称</td>
</tr>
<tr>
<td style="text-align: left;">supplier</td>
<td style="text-align: left;">String</td>
<td>供应商</td>
</tr>
<tr>
<td style="text-align: left;">supplierName</td>
<td style="text-align: left;">String</td>
<td>供应商名称</td>
</tr>
<tr>
<td style="text-align: left;">times</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;">rightsAmt</td>
<td style="text-align: left;">float</td>
<td>耗卡消耗</td>
</tr>
<tr>
<td style="text-align: left;">amount</td>
<td style="text-align: left;">float</td>
<td>消耗金额</td>
</tr>
<tr>
<td style="text-align: left;">amountRate</td>
<td style="text-align: left;">float</td>
<td>消耗金额占比</td>
</tr>
<tr>
<td style="text-align: left;">debtAmt</td>
<td style="text-align: left;">float</td>
<td>欠款</td>
</tr>
<tr>
<td style="text-align: left;">cashRepayAmt</td>
<td style="text-align: left;">float</td>
<td>还款(现金)</td>
</tr>
<tr>
<td style="text-align: left;">storeRepayAmt</td>
<td style="text-align: left;">float</td>
<td>还款(储值)</td>
</tr>
<tr>
<td style="text-align: left;">freeAmt</td>
<td style="text-align: left;">float</td>
<td>免单</td>
</tr>
<tr>
<td style="text-align: left;">customerNum</td>
<td style="text-align: left;">float</td>
<td>客数</td>
</tr>
<tr>
<td style="text-align: left;">customerTimes</td>
<td style="text-align: left;">float</td>
<td>客次</td>
</tr>
<tr>
<td style="text-align: left;">guestNum</td>
<td style="text-align: left;">float</td>
<td>散客</td>
</tr>
<tr>
<td style="text-align: left;">memberNum</td>
<td style="text-align: left;">float</td>
<td>会员</td>
</tr>
<tr>
<td style="text-align: left;">maleNum</td>
<td style="text-align: left;">float</td>
<td>男客</td>
</tr>
<tr>
<td style="text-align: left;">femaleNum</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;: false,
&quot;hasPreviousPage&quot;: false,
&quot;isFirstPage&quot;: true,
&quot;isLastPage&quot;: true,
&quot;list&quot;: [
{
&quot;basePrjCashAmt&quot;: 25599.20000,
&quot;basePrjCostAmt&quot;: 6880.00000,
&quot;basePrjCreditAmt&quot;: 13236.00000,
&quot;basePrjFreeAmt&quot;: 0.00000,
&quot;basePrjRightsAmt&quot;: 8060.00000,
&quot;basePrjTimes&quot;: 90.00000,
&quot;bigPrjCashAmt&quot;: 154.80000,
&quot;bigPrjCostAmt&quot;: 430.05000,
&quot;bigPrjCreditAmt&quot;: 0.00000,
&quot;bigPrjFreeAmt&quot;: 0.00000,
&quot;bigPrjRightsAmt&quot;: 0.80000,
&quot;bigPrjTimes&quot;: 5.00000,
&quot;billingDate&quot;: 1735660800000,
&quot;cashPayAmt&quot;: 25754.00000,
&quot;compCode&quot;: &quot;001&quot;,
&quot;compId&quot;: &quot;5d6494c5033f9f3274eb991a&quot;,
&quot;compName&quot;: &quot;博卡总部&quot;,
&quot;costAmt&quot;: 7310.05000,
&quot;customerNum&quot;: 15,
&quot;dateStr&quot;: &quot;1月&quot;,
&quot;newNum&quot;: 5,
&quot;oldNum&quot;: 6,
&quot;productCashAmt&quot;: 3485.80000,
&quot;productCostAmt&quot;: 0.00000,
&quot;productCreditAmt&quot;: 0.00000,
&quot;productFreeAmt&quot;: 0.00000,
&quot;productRightsAmt&quot;: 0.00000,
&quot;saleCashAmt&quot;: 15667.00000,
&quot;saleCreditAmt&quot;: 0.00000,
&quot;saleFreeAmt&quot;: 0.00000,
&quot;saleRightsAmt&quot;: 0.00000
}
],
&quot;nextPage&quot;: 1,
&quot;pageNum&quot;: 1,
&quot;pageSize&quot;: 20,
&quot;pages&quot;: 1,
&quot;prePage&quot;: 1,
&quot;size&quot;: 0,
&quot;statistics&quot;: {
&quot;basePrjCashAmt&quot;: 284872.18000,
&quot;basePrjCostAmt&quot;: 19303.33000,
&quot;basePrjCreditAmt&quot;: 59652.00000,
&quot;basePrjFreeAmt&quot;: 48411.00000,
&quot;basePrjRightsAmt&quot;: 29104.36000,
&quot;bigPrjCashAmt&quot;: 1770.30000,
&quot;bigPrjCostAmt&quot;: 860.30000,
&quot;bigPrjCreditAmt&quot;: 1300.00000,
&quot;bigPrjFreeAmt&quot;: 200.00000,
&quot;bigPrjRightsAmt&quot;: 1.80000,
&quot;cashPayAmt&quot;: 286642.48000,
&quot;costAmt&quot;: 18163.63000,
&quot;expend&quot;: 0.00000,
&quot;income&quot;: 288.00000,
&quot;newNum&quot;: 74,
&quot;oldNum&quot;: 48,
&quot;productCashAmt&quot;: 19582.20000,
&quot;productCostAmt&quot;: 0.00000,
&quot;productCreditAmt&quot;: 0.00000,
&quot;productFreeAmt&quot;: 0.00000,
&quot;productRightsAmt&quot;: 0.00000,
&quot;saleCreditAmt&quot;: 0.00000,
&quot;saleFreeAmt&quot;: 0.00000,
&quot;saleRightsAmt&quot;: 0.00000,
&quot;total&quot;: 2
},
&quot;total&quot;: 2
},
&quot;success&quot;: true
}</code></pre>
<h5>备注</h5>
<ul>
<li>无</li>
</ul>