|
|
@ -240,7 +240,7 @@ public class DashboardServiceImpl implements DashboardService, DashboardAnalysis
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public List<JSONObject> getTradeAnalysisInTime(JSONObject params) {
|
|
|
|
public List<JSONObject> getTradeAnalysisInTime(JSONObject params) {
|
|
|
|
//"Online API", "QR Code", "Retail API", "Retail In-Store", "WeChat HTML5"
|
|
|
|
//"Online API", "QR Code", "Retail API", "Retail In-Store", "In-APP H5"
|
|
|
|
List<JSONObject> analysis = new ArrayList<>();
|
|
|
|
List<JSONObject> analysis = new ArrayList<>();
|
|
|
|
params.put("trade_type", "Online API");
|
|
|
|
params.put("trade_type", "Online API");
|
|
|
|
List<JSONObject> onlineApi_ordedrs = transactionAnalysisMapper.getOrdersByGateway(params);
|
|
|
|
List<JSONObject> onlineApi_ordedrs = transactionAnalysisMapper.getOrdersByGateway(params);
|
|
|
@ -268,10 +268,10 @@ public class DashboardServiceImpl implements DashboardService, DashboardAnalysis
|
|
|
|
if (!retailInStore_orders.isEmpty()) {
|
|
|
|
if (!retailInStore_orders.isEmpty()) {
|
|
|
|
analysis.add(retailInStore);
|
|
|
|
analysis.add(retailInStore);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
params.put("trade_type", "WeChat HTML5");
|
|
|
|
params.put("trade_type", "In-APP H5");
|
|
|
|
List<JSONObject> wechatHtml5_orders = transactionAnalysisMapper.getOrdersByGateway(params);
|
|
|
|
List<JSONObject> wechatHtml5_orders = transactionAnalysisMapper.getOrdersByGateway(params);
|
|
|
|
JSONObject wechatHtml5 = new JSONObject();
|
|
|
|
JSONObject wechatHtml5 = new JSONObject();
|
|
|
|
wechatHtml5.put("name", "WeChat HTML5");
|
|
|
|
wechatHtml5.put("name", "In-APP H5");
|
|
|
|
wechatHtml5.put("data", wechatHtml5_orders);
|
|
|
|
wechatHtml5.put("data", wechatHtml5_orders);
|
|
|
|
analysis.add(wechatHtml5);
|
|
|
|
analysis.add(wechatHtml5);
|
|
|
|
return analysis;
|
|
|
|
return analysis;
|
|
|
|