|
|
@ -67,10 +67,11 @@ public class DashboardController {
|
|
|
|
@ManagerMapping("/top_trade_partners")
|
|
|
|
@ManagerMapping("/top_trade_partners")
|
|
|
|
public List<JSONObject> topTradePartners(AnalysisBean analysis, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager,
|
|
|
|
public List<JSONObject> topTradePartners(AnalysisBean analysis, @ModelAttribute(CommonConsts.MANAGER_STATUS) JSONObject manager,
|
|
|
|
@RequestParam(defaultValue = "10") int limit) {
|
|
|
|
@RequestParam(defaultValue = "10") int limit) {
|
|
|
|
|
|
|
|
|
|
|
|
JSONObject params = analysis.toParams(analysis.getTimezone());
|
|
|
|
JSONObject params = analysis.toParams(analysis.getTimezone());
|
|
|
|
orgManager.checkOrg(manager, params);
|
|
|
|
orgManager.checkOrg(manager, params);
|
|
|
|
params.put("limit", limit);
|
|
|
|
params.put("limit", limit);
|
|
|
|
return dashboardService.getTopTradePartners(params);
|
|
|
|
return dashboardService.getTopTradePartnersNew(params);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ManagerMapping("/rank_trade_partners")
|
|
|
|
@ManagerMapping("/rank_trade_partners")
|
|
|
@ -83,7 +84,7 @@ public class DashboardController {
|
|
|
|
params.put("bd_group_bd", analysis.getGroup_bd());
|
|
|
|
params.put("bd_group_bd", analysis.getGroup_bd());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return dashboardService.getTopTradePartners(params);
|
|
|
|
return dashboardService.getTopTradePartnersNew(params);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ManagerMapping("/trade_in_hours")
|
|
|
|
@ManagerMapping("/trade_in_hours")
|
|
|
|