获取销售统计
<p><strong>简要描述:</strong> </p>
<ul>
<li>获取销售统计接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/store/store/get-sales-statistics</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;">lotteryId</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>彩种面额ID</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>统计月份或年份 月份 2018-11 年份 2018</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
"code": 600,
"msg": "获取成功",
"result": {
"all_amount": "1000", // 区间内总销售金额
"all_nums": "105", // 区间内总销售量
"five_amount": "52975.00", // 面额5元 总销售金额
"five_nums": "10595", // 面额5元 总销售量
"ten_amount": "1330.00", // 面额10元 总销售金额
"ten_nums": "133", // 面额10元 总销售量
"twenty_amount": "1420.00", // 面额20元 总销售金额
"twenty_nums": "71", // 面额20元 总销售量
"sub_sta": [ // 如是年统计 子统计为月份 如是月统计 子统计为日期
{
"sub_statistics": "2018-11", // 统计的月份或日期
"sub_all_amount": "55725.00", // 月或日销售金额
"sub_all_nums": "10799", // 月或日销售量
"five_sub_amount": "52975.00", // 面额5元 月或日销售金额
"five_sub_nums": "10595",// 面额5元 月或日销售量
"ten_sub_amount": "1330.00",// 面额10元 月或日销售金额
"ten_sub_nums": "133",// 面额10元 月或日销售量
"twenty_sub_amount": "1420.00",//面额20元 月或日销售金额
"twenty_sub_nums": "71"// 面额20元 月或日销售量
}
],
"sale_list": [ // 销售明细
{
"order_code": "GGCORDER18110612T00000002", //订单编号
"store_no": "gl00013599", // 门店商户号
"channel_no": "gl", //渠道商户号
"terminal_num": "PS100001", // 终端码
"pay_money": "5", // 支付金额
"buy_nums": "1", // 购买数量
"create_time": "2018-11-06 12:03:46", // 下单时间
"lottery_value": "5", // 所购买面额
"pay_time": "2018-11-06 14:37:23", // 支付时间
"lottery_img": "http://114.115.148.102/img/lotteryImg/181105055245_98.jpg" //面额图片
"out_nums": "5", // 实际出票张数
},
{
"order_code": "GGCORDER18110614T00000008",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "PS100001",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-06 14:35:42",
"lottery_value": "5",
"pay_time": "2018-11-06 14:37:25",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110614T00000013",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "PS100001",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-06 14:44:49",
"lottery_value": "5",
"pay_time": "2018-11-06 14:44:42",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110615T00000002",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "PS100001",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-06 15:40:10",
"lottery_value": "5",
"pay_time": "2018-11-06 15:40:02",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110615T00000008",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "PS100001",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-06 15:42:56",
"lottery_value": "5",
"pay_time": "2018-11-06 15:42:48",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110615T00000009",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "PS100001",
"pay_money": "10",
"buy_nums": "2",
"create_time": "2018-11-06 15:44:09",
"lottery_value": "5",
"pay_time": "2018-11-06 15:44:03",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110615T00000011",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "PS100001",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-06 15:59:09",
"lottery_value": "5",
"pay_time": "2018-11-06 15:59:01",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110617T00000001",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "PS100001",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-06 17:26:16",
"lottery_value": "5",
"pay_time": "2018-11-06 17:26:09",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110617T00000006",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "PS100001",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-06 17:58:47",
"lottery_value": "5",
"pay_time": "2018-11-06 17:58:51",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110618T00000004",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "PS100001",
"pay_money": "15",
"buy_nums": "3",
"create_time": "2018-11-06 18:11:33",
"lottery_value": "5",
"pay_time": "2018-11-06 18:11:34",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110716T00000001",
"store_no": "gl00013599",
"channel_no": "admin",
"terminal_num": "线下销售",
"pay_money": "100",
"buy_nums": "10",
"create_time": "2018-11-07 16:05:58",
"lottery_value": "10",
"pay_time": "2018-11-07 16:05:58",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110716T00000003",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "100",
"buy_nums": "10",
"create_time": "2018-11-07 16:30:08",
"lottery_value": "10",
"pay_time": "2018-11-07 16:30:09",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110723T00000001",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "70",
"buy_nums": "7",
"create_time": "2018-11-07 23:10:19",
"lottery_value": "10",
"pay_time": "2018-11-07 23:10:19",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110810T00000002",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "100",
"buy_nums": "20",
"create_time": "2018-11-08 10:57:52",
"lottery_value": "5",
"pay_time": "2018-11-08 10:57:52",
"lottery_name": "十倍幸运"
},
{
"order_code": "GGCORDER18110811T00000001",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "200",
"buy_nums": "10",
"create_time": "2018-11-08 11:11:44",
"lottery_value": "20",
"pay_time": "2018-11-08 11:11:44",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110811T00000002",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "200",
"buy_nums": "10",
"create_time": "2018-11-08 11:12:03",
"lottery_value": "20",
"pay_time": "2018-11-08 11:12:03",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110811T00000003",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "10",
"buy_nums": "2",
"create_time": "2018-11-08 11:13:46",
"lottery_value": "5",
"pay_time": "2018-11-08 11:13:46",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110811T00000004",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "10",
"buy_nums": "2",
"create_time": "2018-11-08 11:13:46",
"lottery_value": "5",
"pay_time": "2018-11-08 11:13:46",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110811T00000005",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "10",
"buy_nums": "2",
"create_time": "2018-11-08 11:13:58",
"lottery_value": "5",
"pay_time": "2018-11-08 11:13:58",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110811T00000006",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "10",
"buy_nums": "2",
"create_time": "2018-11-08 11:28:42",
"lottery_value": "5",
"pay_time": "2018-11-08 11:28:42",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110811T00000007",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "10",
"buy_nums": "2",
"create_time": "2018-11-08 11:28:46",
"lottery_value": "5",
"pay_time": "2018-11-08 11:28:46",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110914T00000001",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-09 14:30:49",
"lottery_value": "5",
"pay_time": "2018-11-09 14:30:49",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110914T00000002",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-09 14:36:35",
"lottery_value": "5",
"pay_time": "2018-11-09 14:36:35",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110914T00000003",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-09 14:36:43",
"lottery_value": "5",
"pay_time": "2018-11-09 14:36:44",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110914T00000004",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "10",
"buy_nums": "1",
"create_time": "2018-11-09 14:36:50",
"lottery_value": "10",
"pay_time": "2018-11-09 14:36:50",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110914T00000005",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "10",
"buy_nums": "1",
"create_time": "2018-11-09 14:37:33",
"lottery_value": "10",
"pay_time": "2018-11-09 14:37:33",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110914T00000006",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-09 14:56:05",
"lottery_value": "5",
"pay_time": "2018-11-09 14:56:05",
"lottery_name": "十倍幸运"
},
{
"order_code": "GGCORDER18110916T00000001",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "10",
"buy_nums": "1",
"create_time": "2018-11-09 16:30:13",
"lottery_value": "10",
"pay_time": "2018-11-09 16:30:13",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18110917T00000001",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-09 17:36:33",
"lottery_value": "5",
"pay_time": "2018-11-09 17:36:33",
"lottery_name": "十倍幸运"
},
{
"order_code": "GGCORDER18110918T00000001",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "10",
"buy_nums": "1",
"create_time": "2018-11-09 18:12:33",
"lottery_value": "10",
"pay_time": "2018-11-09 18:12:33",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18111210T00000006",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "20",
"buy_nums": "1",
"create_time": "2018-11-12 10:57:59",
"lottery_value": "20",
"pay_time": "2018-11-12 10:57:59",
"lottery_name": "中国红"
},
{
"order_code": "GGCORDER18111214T00000001",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "PS100001",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-12 14:52:05",
"lottery_value": "5",
"pay_time": "2018-11-12 14:51:57",
"lottery_name": "十倍幸运"
},
{
"order_code": "GGCORDER18111218T00000004",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "PS100002",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-12 18:10:53",
"lottery_value": "5",
"pay_time": "2018-11-12 18:10:44",
"lottery_name": "十倍幸运"
},
{
"order_code": "GGCORDER18111218T00000005",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "PS100002",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-12 18:13:43",
"lottery_value": "5",
"pay_time": "2018-11-12 18:13:32",
"lottery_name": "十倍幸运"
},
{
"order_code": "GGCORDER18111309T00000002",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "5",
"buy_nums": "1",
"create_time": "2018-11-13 09:54:55",
"lottery_value": "5",
"pay_time": "2018-11-13 09:54:55",
"lottery_name": "十倍幸运"
},
{
"order_code": "GGCORDER18111310T00000001",
"store_no": "gl00013599",
"channel_no": "gl",
"terminal_num": "线下销售",
"pay_money": "10",
"buy_nums": "1",
"create_time": "2018-11-13 10:05:03",
"lottery_value": "10",
"pay_time": "2018-11-13 10:05:03",
"lottery_name": "中国结"
}
]
}
}</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>