master
hellolujian 6 years ago
parent 7401a9e414
commit 447fea52e6

@ -62,7 +62,7 @@ public class AnalysisBean {
if (bd_id != null){ if (bd_id != null){
params.put("bd_id",bd_id); params.put("bd_id",bd_id);
} }
if (org_id !=null){ if (org_id != null){
params.put("org_id",org_id); params.put("org_id",org_id);
} }
if (begin_month != null){ if (begin_month != null){
@ -71,25 +71,25 @@ public class AnalysisBean {
if (end_month != null){ if (end_month != null){
params.put("end_month",end_month); params.put("end_month",end_month);
} }
if (customer_id!=null && !customer_id.isEmpty()){ if (customer_id != null && !customer_id.isEmpty()){
params.put("customer_id",customer_id.trim()); params.put("customer_id", customer_id.trim());
} }
if (rankType!=null){ if (rankType != null){
params.put("rankType",rankType); params.put("rankType", rankType);
} }
if(channel!=null){ if(channel != null){
params.put("channel",channel); params.put("channel", channel);
} }
if(bd_name!=null){ if(bd_name != null){
params.put("bd_name",bd_name); params.put("bd_name", bd_name);
} }
if (client_moniker!=null){ if (client_moniker != null){
params.put("client_moniker", client_moniker); params.put("client_moniker", client_moniker);
} }
if (amount_from!=null && amount_from.length()>0){ if (amount_from != null && amount_from.length() > 0){
params.put("amount_from", new BigDecimal(amount_from)); params.put("amount_from", new BigDecimal(amount_from));
} }
if (amount_to!=null && amount_to.length()>0){ if (amount_to != null && amount_to.length() > 0){
params.put("amount_to", new BigDecimal(amount_to)); params.put("amount_to", new BigDecimal(amount_to));
} }
return params; return params;

@ -22,7 +22,7 @@ public interface DashboardService {
List<JSONObject> getTradeInTypes(JSONObject params); List<JSONObject> getTradeInTypes(JSONObject params);
List<JSONObject> getTopTradePartners(JSONObject params, int limit); //List<JSONObject> getTopTradePartners(JSONObject params, int limit);
List<JSONObject> getTopTradePartners(JSONObject params); List<JSONObject> getTopTradePartners(JSONObject params);

@ -161,12 +161,14 @@ public class DashboardServiceImpl implements DashboardService,DashboardAnalysisT
return transactionAnalysisMapper.getTradeAmountInTypes(params); return transactionAnalysisMapper.getTradeAmountInTypes(params);
} }
/*
@Override @Override
public List<JSONObject> getTopTradePartners(JSONObject params, int limit) { public List<JSONObject> getTopTradePartners(JSONObject params, int limit) {
params.put("rankType", "aud_fee"); params.put("rankType", "aud_fee");
params.put("limit", limit); params.put("limit", limit);
return clientAnalysisMapper.listPartnersTradeAmount(params); return clientAnalysisMapper.listPartnersTradeAmount(params);
} }
*/
@Override @Override
public List<JSONObject> getTopTradePartners(JSONObject params) { public List<JSONObject> getTopTradePartners(JSONObject params) {

Loading…
Cancel
Save