对账 for pad
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>报表接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li>` <a href="http://api-test.boka.vc/analytic/business/pad/settlement/bill">http://api-test.boka.vc/analytic/business/pad/settlement/bill</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;">compIds</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">List</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;">dateType</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;">keyword</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">String</td>
<td>搜索关键字</td>
</tr>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>单据计算方式:0:全部 1:手动输入 2:系统计算</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;">status</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>核对:0:全部 1:已核对 2:未核对</td>
</tr>
<tr>
<td style="text-align: left;">sign</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>签字状态:0:全部 1:已签字 2:未签字</td>
</tr>
<tr>
<td style="text-align: left;">paymentList</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">List</td>
<td>支付方式code集合</td>
</tr>
<tr>
<td style="text-align: left;">categoryList</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">List</td>
<td>支付方式分类集合</td>
</tr>
<tr>
<td style="text-align: left;">departmentList</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">List</td>
<td>部门code集合</td>
</tr>
<tr>
<td style="text-align: left;">createUsers</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">List</td>
<td>创建人/操作者集合</td>
</tr>
<tr>
<td style="text-align: left;">employeeList</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">List</td>
<td>员工/销售员集合</td>
</tr>
<tr>
<td style="text-align: left;">billTypeList</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">List</td>
<td>单据类别集合</td>
</tr>
</tbody>
</table>
<h5>参数示例</h5>
<pre><code>{
&quot;startDate&quot;: &quot;2024-09-12&quot;,
&quot;endDate&quot;: &quot;2024-09-14&quot;,
&quot;dateType&quot;: 0,
&quot;paymentList&quot;: [&quot;cash&quot;],
&quot;employeeList&quot;: [&quot;66ce8c21e4b0bd4a59dfeecf&quot;]
}</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;">list</td>
<td style="text-align: left;">list</td>
<td>分页数据</td>
</tr>
<tr>
<td style="text-align: left;">pageInfo</td>
<td style="text-align: left;">Object</td>
<td>分页信息</td>
</tr>
</tbody>
</table>
<p>pageInfo说明</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;">currentPage</td>
<td style="text-align: left;">Integer</td>
<td>当前页</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">Integer</td>
<td>分页大小</td>
</tr>
<tr>
<td style="text-align: left;">total</td>
<td style="text-align: left;">Integer</td>
<td>总条数</td>
</tr>
<tr>
<td style="text-align: left;">totalPage</td>
<td style="text-align: left;">Integer</td>
<td>总页数</td>
</tr>
</tbody>
</table>
<p>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;">billType</td>
<td style="text-align: left;">Integer</td>
<td>单据类别:见billType说明</td>
</tr>
<tr>
<td style="text-align: left;">memberName</td>
<td style="text-align: left;">String</td>
<td>客户</td>
</tr>
<tr>
<td style="text-align: left;">source</td>
<td style="text-align: left;">String</td>
<td>来源/渠道</td>
</tr>
<tr>
<td style="text-align: left;">no</td>
<td style="text-align: left;">String</td>
<td>单号</td>
</tr>
<tr>
<td style="text-align: left;">createTime</td>
<td style="text-align: left;">Long</td>
<td>创建时间</td>
</tr>
<tr>
<td style="text-align: left;">totalAmount</td>
<td style="text-align: left;">float</td>
<td>单据总金额</td>
</tr>
<tr>
<td style="text-align: left;">detailList</td>
<td style="text-align: left;">List</td>
<td>单据明细</td>
</tr>
</tbody>
</table>
<p>billType说明</p>
<pre><code> rights(0, &quot;MK&quot;, &quot;卖卡单&quot;),
exchange(1, &quot;HG&quot;, &quot;换购单&quot;),
consume(2, &quot;SY&quot;, &quot;收银单&quot;),
repay(3, &quot;HK&quot;, &quot;还款单&quot;),
refund(4, &quot;TK&quot;, &quot;退款单&quot;),
transfer(5, &quot;ZK&quot;, &quot;转卡单&quot;),
upgrade(6, &quot;SJ&quot;, &quot;升级单&quot;);</code></pre>
<p>detailList说明</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;">goodsType</td>
<td style="text-align: left;">int</td>
<td>商品类别</td>
</tr>
<tr>
<td style="text-align: left;">goodsCode</td>
<td style="text-align: left;">String</td>
<td>商品编号</td>
</tr>
<tr>
<td style="text-align: left;">goodsName</td>
<td style="text-align: left;">String</td>
<td>商品名称</td>
</tr>
<tr>
<td style="text-align: left;">number</td>
<td style="text-align: left;">float</td>
<td>商品数量</td>
</tr>
<tr>
<td style="text-align: left;">paymentList</td>
<td style="text-align: left;">List</td>
<td>支付方式</td>
</tr>
<tr>
<td style="text-align: left;">employeeList</td>
<td style="text-align: left;">List</td>
<td>服务/销售员工</td>
</tr>
</tbody>
</table>
<p>goodsType说明</p>
<pre><code> SHOP_PROJECT(1, &quot;shopProject&quot;, &quot;门店项目&quot;),
TRIAL_PROJECT(2, &quot;trialProject&quot;, &quot;体验项目&quot;),
PRODUCT(3, &quot;product&quot;, &quot;产品&quot;),
ITEM(4, &quot;item&quot;, &quot;品项&quot;),
PACKAGES(5, &quot;packages&quot;, &quot;套餐&quot;),
STORE(6, &quot;store&quot;, &quot;储值权益&quot;),
QUA(7, &quot;qua&quot;, &quot;资格权益&quot;),
VOUCHER(8, &quot;voucher&quot;, &quot;抵扣券&quot;),
COMBO(9, &quot;combo&quot;, &quot;组合&quot;);</code></pre>
<p>paymentList说明</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;">payCode</td>
<td style="text-align: left;">String</td>
<td>支付方式表那红</td>
</tr>
<tr>
<td style="text-align: left;">payName</td>
<td style="text-align: left;">String</td>
<td>支付方式名称</td>
</tr>
<tr>
<td style="text-align: left;">payCategoryCode</td>
<td style="text-align: left;">String</td>
<td>支付方式大类</td>
</tr>
<tr>
<td style="text-align: left;">payAmount</td>
<td style="text-align: left;">float</td>
<td>支付金额</td>
</tr>
</tbody>
</table>
<p>employeeList说明</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;">staffId</td>
<td style="text-align: left;">String</td>
<td>服务/销售员工id</td>
</tr>
<tr>
<td style="text-align: left;">staffCode</td>
<td style="text-align: left;">String</td>
<td>服务/销售员工编号</td>
</tr>
<tr>
<td style="text-align: left;">staffName</td>
<td style="text-align: left;">String</td>
<td>服务/销售员工名称</td>
</tr>
<tr>
<td style="text-align: left;">departmentId</td>
<td style="text-align: left;">String</td>
<td>服务/销售员工部门id</td>
</tr>
<tr>
<td style="text-align: left;">departmentCode</td>
<td style="text-align: left;">String</td>
<td>服务/销售员工部门编号</td>
</tr>
<tr>
<td style="text-align: left;">departmentName</td>
<td style="text-align: left;">String</td>
<td>服务/销售员工部门名称</td>
</tr>
<tr>
<td style="text-align: left;">serviceTypeCode</td>
<td style="text-align: left;">String</td>
<td>服务类别code</td>
</tr>
<tr>
<td style="text-align: left;">serviceTypeName</td>
<td style="text-align: left;">String</td>
<td>服务类别名称</td>
</tr>
<tr>
<td style="text-align: left;"></td>
<td style="text-align: left;">float</td>
<td>业绩</td>
</tr>
<tr>
<td style="text-align: left;"></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;list&quot;: [
{
&quot;billId&quot;: &quot;658456357384585216&quot;,
&quot;billType&quot;: 0,
&quot;billingDate&quot;: 1726588800000,
&quot;createTime&quot;: 1726659236000,
&quot;detailList&quot;: [
{
&quot;employeeList&quot;: [
{
&quot;billId&quot;: &quot;658456357384585216&quot;,
&quot;billType&quot;: 0,
&quot;billingDate&quot;: 1726588800000,
&quot;compId&quot;: &quot;5d6494c5033f9f3274eb991a&quot;,
&quot;custId&quot;: &quot;MRCS&quot;,
&quot;id&quot;: &quot;658456359532068881&quot;,
&quot;isDelete&quot;: 0,
&quot;staffCode&quot;: &quot;002&quot;,
&quot;staffId&quot;: &quot;669a12cbe4b04c53b8d6a295&quot;,
&quot;staffName&quot;: &quot;张三&quot;
},
{
&quot;billId&quot;: &quot;658456357384585216&quot;,
&quot;billType&quot;: 0,
&quot;billingDate&quot;: 1726588800000,
&quot;compId&quot;: &quot;5d6494c5033f9f3274eb991a&quot;,
&quot;custId&quot;: &quot;MRCS&quot;,
&quot;id&quot;: &quot;658456359532068879&quot;,
&quot;isDelete&quot;: 0,
&quot;staffCode&quot;: &quot;0009&quot;,
&quot;staffId&quot;: &quot;66ce8c21e4b0bd4a59dfeecf&quot;,
&quot;staffName&quot;: &quot;黄宝帅&quot;
},
{
&quot;billId&quot;: &quot;658456357384585216&quot;,
&quot;billType&quot;: 0,
&quot;billingDate&quot;: 1726588800000,
&quot;compId&quot;: &quot;5d6494c5033f9f3274eb991a&quot;,
&quot;custId&quot;: &quot;MRCS&quot;,
&quot;id&quot;: &quot;658456359532068880&quot;,
&quot;isDelete&quot;: 0,
&quot;staffCode&quot;: &quot;001&quot;,
&quot;staffId&quot;: &quot;6699df39e4b081f9d9d13fb3&quot;,
&quot;staffName&quot;: &quot;吴林兴&quot;
}
],
&quot;given&quot;: 0.00000,
&quot;goodsCode&quot;: &quot;2024080513174716366939&quot;,
&quot;goodsId&quot;: &quot;650244019113492480&quot;,
&quot;goodsName&quot;: &quot;不限次-降噪水氧活肤&quot;,
&quot;goodsType&quot;: 4,
&quot;number&quot;: 1.00000,
&quot;paymentList&quot;: [
{
&quot;amount&quot;: 0,
&quot;billGoodsId&quot;: &quot;658456359532068864&quot;,
&quot;billGoodsType&quot;: 4,
&quot;billId&quot;: &quot;658456357384585216&quot;,
&quot;billType&quot;: 0,
&quot;billingDate&quot;: 1726588800000,
&quot;compId&quot;: &quot;5d6494c5033f9f3274eb991a&quot;,
&quot;custId&quot;: &quot;MRCS&quot;,
&quot;id&quot;: &quot;658456359532068872&quot;,
&quot;isDelete&quot;: 0,
&quot;memberId&quot;: &quot;657481966746370048&quot;,
&quot;payAmount&quot;: 0,
&quot;payCategoryCode&quot;: &quot;free&quot;,
&quot;payCode&quot;: &quot;innerTransfer&quot;,
&quot;payName&quot;: &quot;内调&quot;,
&quot;payPercent&quot;: 0
},
{
&quot;amount&quot;: 30,
&quot;billGoodsId&quot;: &quot;658456359532068864&quot;,
&quot;billGoodsType&quot;: 4,
&quot;billId&quot;: &quot;658456357384585216&quot;,
&quot;billType&quot;: 0,
&quot;billingDate&quot;: 1726588800000,
&quot;compId&quot;: &quot;5d6494c5033f9f3274eb991a&quot;,
&quot;custId&quot;: &quot;MRCS&quot;,
&quot;id&quot;: &quot;658456359532068870&quot;,
&quot;isDelete&quot;: 0,
&quot;memberId&quot;: &quot;657481966746370048&quot;,
&quot;payAmount&quot;: 30,
&quot;payCategoryCode&quot;: &quot;cash&quot;,
&quot;payCode&quot;: &quot;cash&quot;,
&quot;payName&quot;: &quot;现金&quot;,
&quot;payPercent&quot;: 0.02
},
{
&quot;amount&quot;: 0,
&quot;billGoodsId&quot;: &quot;658456359532068864&quot;,
&quot;billGoodsType&quot;: 4,
&quot;billId&quot;: &quot;658456357384585216&quot;,
&quot;billType&quot;: 0,
&quot;billingDate&quot;: 1726588800000,
&quot;compId&quot;: &quot;5d6494c5033f9f3274eb991a&quot;,
&quot;custId&quot;: &quot;MRCS&quot;,
&quot;id&quot;: &quot;658456359532068871&quot;,
&quot;isDelete&quot;: 0,
&quot;memberId&quot;: &quot;657481966746370048&quot;,
&quot;payAmount&quot;: 0,
&quot;payCategoryCode&quot;: &quot;free&quot;,
&quot;payCode&quot;: &quot;managerBill&quot;,
&quot;payName&quot;: &quot;经理签单&quot;,
&quot;payPercent&quot;: 0
}
],
&quot;saleAmount&quot;: 30.00000,
&quot;times&quot;: 0.00000
}
],
&quot;memberGender&quot;: 0,
&quot;memberId&quot;: &quot;657481966746370048&quot;,
&quot;memberName&quot;: &quot;更换创建会员接口00&quot;,
&quot;no&quot;: &quot;MK001240918007&quot;,
&quot;source&quot;: &quot;PC&quot;,
&quot;totalAmount&quot;: &quot;500.00000&quot;
}
],
&quot;pageInfo&quot;: {
&quot;currentPage&quot;: 1,
&quot;pageSize&quot;: 15,
&quot;total&quot;: 1,
&quot;totalPage&quot;: 1
}
},
&quot;success&quot;: true
}</code></pre>
<h5>备注</h5>
<ul>
<li>无</li>
</ul>