|
|
|
@ -591,10 +591,9 @@ public class DashboardServiceImpl implements DashboardService, DashboardAnalysis
|
|
|
|
|
}
|
|
|
|
|
params.put("channel", record.getString("channel"));
|
|
|
|
|
int newCustomers = 0;
|
|
|
|
|
int oldCustomers = transactionAnalysisMapper.countOldCustomers(params);
|
|
|
|
|
if (client.getIntValue("client_id") == 0) {
|
|
|
|
|
newCustomers = record.getIntValue("customers") - oldCustomers;
|
|
|
|
|
} else {
|
|
|
|
|
int oldCustomers=0;
|
|
|
|
|
if (client.getIntValue("client_id") != 0) {
|
|
|
|
|
oldCustomers = transactionAnalysisMapper.countOldCustomers(params);
|
|
|
|
|
newCustomers = transactionAnalysisMapper.countNewCustomers(params);
|
|
|
|
|
}
|
|
|
|
|
record.put("new_customers", newCustomers);
|
|
|
|
|