|
|
|
@ -85,6 +85,17 @@ public class CustomersAnalysisController {
|
|
|
|
|
return customersAnalysisService.getCustomersRanking(params,analysis.getPage(),analysis.getLimit());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ManagerMapping(value = "/ranking/{openid_type}/total",role = ManagerRole.RISK_MANAGER)
|
|
|
|
|
public JSONObject getCustomersTotal(@PathVariable int openid_type, AnalysisBean analysis, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
|
|
|
|
|
JSONObject params = analysis.toParams(null);
|
|
|
|
|
params.put("openid_type",openid_type);
|
|
|
|
|
if (manager.getInteger("org_id") != null) {
|
|
|
|
|
params.put("org_id", manager.getIntValue("org_id"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return customersAnalysisService.getCustomersTotal(params);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ManagerMapping(value = "/{customer_id}/orders",role = ManagerRole.DEVELOPER)
|
|
|
|
|
public JSONObject getCustomerOrders(@PathVariable String customer_id, TradeLogQuery tradeLogQuery, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager) {
|
|
|
|
|
JSONObject params = tradeLogQuery.toParams(null);
|
|
|
|
|