获取机器销售统计
<p><strong>简要描述:</strong> </p>
<ul>
<li>获取机器销售统计</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/store/store/get-machine-sale-statis</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<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;">custNo</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>门店店主编号</td>
</tr>
<tr>
<td style="text-align: left;">terminalNum</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>终端号</td>
</tr>
<tr>
<td style="text-align: left;">statisType</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>统计类型 1:按月份 2:按年份</td>
</tr>
<tr>
<td style="text-align: left;">statisTime</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>统计月份或年份 月份 2019-11 年份 2019</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"code": 600,
"msg": "获取成功",
"result": {
"all_amount": "475.00", //总销售金额
"all_nums": "88", //总销售张数
"five_amount": "425.00", // 五元销售金额
"five_nums": "85", //五元面额销售张数
"ten_amount": "10.00", // 10元面额销售金额
"ten_nums": "1", // 10元面额销售张数
"twenty_amount": "40.00", // 20元面额销售张数
"twenty_nums": "2", // 20元面额销售张数
"trend": [根据统计类型 获取走势数组 statisType 为1 31个数 为2 12个数
0,
0,
0,
5,
15,
55,
0,
0,
0,
0,
35,
40,
0,
65,
0,
0,
0,
10,
25,
35,
5,
0,
0,
0,
0,
0,
0,
175,
10,
0,
0
],
"sub_sta": [//根据统计类型 获取下级统计 为1:统计每天 为2 统计每月
{
"sub_all_amount": "10.00", // 销售金额
"sub_all_nums": "2", // 销售张数
"five_sub_amount": "10.00", // 5元面额销售金额
"five_sub_nums": "2", //五元面额销售张数
"ten_sub_amount": "0.00", //十元面额销售金额
"ten_sub_nums": "0", // 十元面额销售张数
"twenty_sub_amount": "0.00", // 二十元面额销售金额
"twenty_sub_nums": "0", // 二十元面额销售张数
"sub_statistics": "2019-03-29" // 日期(月份)
},
{
"sub_all_amount": "175.00",
"sub_all_nums": "29",
"five_sub_amount": "135.00",
"five_sub_nums": "27",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "40.00",
"twenty_sub_nums": "2",
"sub_statistics": "2019-03-28"
},
{
"sub_all_amount": "5.00",
"sub_all_nums": "1",
"five_sub_amount": "5.00",
"five_sub_nums": "1",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-21"
},
{
"sub_all_amount": "35.00",
"sub_all_nums": "7",
"five_sub_amount": "35.00",
"five_sub_nums": "7",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-20"
},
{
"sub_all_amount": "25.00",
"sub_all_nums": "4",
"five_sub_amount": "15.00",
"five_sub_nums": "3",
"ten_sub_amount": "10.00",
"ten_sub_nums": "1",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-19"
},
{
"sub_all_amount": "10.00",
"sub_all_nums": "2",
"five_sub_amount": "10.00",
"five_sub_nums": "2",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-18"
},
{
"sub_all_amount": "65.00",
"sub_all_nums": "13",
"five_sub_amount": "65.00",
"five_sub_nums": "13",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-14"
},
{
"sub_all_amount": "40.00",
"sub_all_nums": "8",
"five_sub_amount": "40.00",
"five_sub_nums": "8",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-12"
},
{
"sub_all_amount": "35.00",
"sub_all_nums": "7",
"five_sub_amount": "35.00",
"five_sub_nums": "7",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-11"
},
{
"sub_all_amount": "55.00",
"sub_all_nums": "11",
"five_sub_amount": "55.00",
"five_sub_nums": "11",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-06"
},
{
"sub_all_amount": "15.00",
"sub_all_nums": "3",
"five_sub_amount": "15.00",
"five_sub_nums": "3",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-05"
},
{
"sub_all_amount": "5.00",
"sub_all_nums": "1",
"five_sub_amount": "5.00",
"five_sub_nums": "1",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-04"
}
]
}
}</code></pre>
<p><strong>返回参数说明</strong> </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;">groupid</td>
<td style="text-align: left;">int</td>
<td>用户组id,1:超级管理员;2:普通用户</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p><strong>简要描述:</strong> </p>
<ul>
<li>用户注册接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/user/register</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST </li>
</ul>
<p><strong>参数:</strong> </p>
<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;">username</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户名</td>
</tr>
<tr>
<td style="text-align: left;">password</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>密码</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>昵称</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"code": 600,
"msg": "获取成功",
"result": {
"all_amount": "475.00",
"all_nums": "88",
"five_amount": "425.00",
"five_nums": "85",
"ten_amount": "10.00",
"ten_nums": "1",
"twenty_amount": "40.00",
"twenty_nums": "2",
"trend": [
0,
0,
0,
5,
15,
55,
0,
0,
0,
0,
35,
40,
0,
65,
0,
0,
0,
10,
25,
35,
5,
0,
0,
0,
0,
0,
0,
175,
10,
0,
0
],
"sub_sta": [
{
"sub_all_amount": "10.00",
"sub_all_nums": "2",
"five_sub_amount": "10.00",
"five_sub_nums": "2",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-29"
},
{
"sub_all_amount": "175.00",
"sub_all_nums": "29",
"five_sub_amount": "135.00",
"five_sub_nums": "27",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "40.00",
"twenty_sub_nums": "2",
"sub_statistics": "2019-03-28"
},
{
"sub_all_amount": "5.00",
"sub_all_nums": "1",
"five_sub_amount": "5.00",
"five_sub_nums": "1",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-21"
},
{
"sub_all_amount": "35.00",
"sub_all_nums": "7",
"five_sub_amount": "35.00",
"five_sub_nums": "7",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-20"
},
{
"sub_all_amount": "25.00",
"sub_all_nums": "4",
"five_sub_amount": "15.00",
"five_sub_nums": "3",
"ten_sub_amount": "10.00",
"ten_sub_nums": "1",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-19"
},
{
"sub_all_amount": "10.00",
"sub_all_nums": "2",
"five_sub_amount": "10.00",
"five_sub_nums": "2",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-18"
},
{
"sub_all_amount": "65.00",
"sub_all_nums": "13",
"five_sub_amount": "65.00",
"five_sub_nums": "13",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-14"
},
{
"sub_all_amount": "40.00",
"sub_all_nums": "8",
"five_sub_amount": "40.00",
"five_sub_nums": "8",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-12"
},
{
"sub_all_amount": "35.00",
"sub_all_nums": "7",
"five_sub_amount": "35.00",
"five_sub_nums": "7",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-11"
},
{
"sub_all_amount": "55.00",
"sub_all_nums": "11",
"five_sub_amount": "55.00",
"five_sub_nums": "11",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-06"
},
{
"sub_all_amount": "15.00",
"sub_all_nums": "3",
"five_sub_amount": "15.00",
"five_sub_nums": "3",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-05"
},
{
"sub_all_amount": "5.00",
"sub_all_nums": "1",
"five_sub_amount": "5.00",
"five_sub_nums": "1",
"ten_sub_amount": "0.00",
"ten_sub_nums": "0",
"twenty_sub_amount": "0.00",
"twenty_sub_nums": "0",
"sub_statistics": "2019-03-04"
}
]
}
}</code></pre>
<p><strong>返回参数说明</strong> </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;">groupid</td>
<td style="text-align: left;">int</td>
<td>用户组id,1:超级管理员;2:普通用户</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>