|
|
|
@ -401,7 +401,12 @@ public class DashboardServiceImpl implements DashboardService,DashboardAnalysisT
|
|
|
|
|
throw new ParamInvalidException("date", "error.payment.valid.invalid_date_format");
|
|
|
|
|
}
|
|
|
|
|
params.put("channel",record.getString("channel"));
|
|
|
|
|
int newCustomers = transactionAnalysisMapper.countNewCustomers(params);
|
|
|
|
|
int newCustomers = 0;
|
|
|
|
|
if (client.getIntValue("client_id")==0){
|
|
|
|
|
newCustomers = transactionAnalysisMapper.getCountCustomers(params.getDate("end")) - transactionAnalysisMapper.getCountCustomers(params.getDate("begin"));
|
|
|
|
|
}else {
|
|
|
|
|
newCustomers = transactionAnalysisMapper.countNewCustomers(params);
|
|
|
|
|
}
|
|
|
|
|
int oldCustomers = transactionAnalysisMapper.countOldCustomers(params);
|
|
|
|
|
record.put("new_customers",newCustomers);
|
|
|
|
|
record.put("old_customers",oldCustomers);
|
|
|
|
|