}
private TransactionReport queryDailyReportsByDuration(String domain, Date start, Date end) {
long startTime = start.getTime();
long endTime = end.getTime();
TransactionReportMerger merger = new TransactionReportMerger(new TransactionReport(domain));
for (; startTime < endTime; startTime += TimeHelper.ONE_DAY) {
try {
TransactionReport reportModel = m_reportService.queryTransactionReport(domain, new Date(startTime),
new Date(startTime + TimeHelper.ONE_DAY));
reportModel.accept(merger);
} catch (Exception e) {
Cat.logError(e);
}
}
TransactionReport transactionReport = merger.getTransactionReport();
transactionReport.setStartTime(start);
transactionReport.setEndTime(end);
new TransactionReportCountFilter().visitTransactionReport(transactionReport);
return transactionReport;
}