Commit f4b034a3 by carrieyzzhang

delete old event stats export report

parent 1bf993c0
...@@ -96,28 +96,30 @@ public class ExportReportThread extends Thread { ...@@ -96,28 +96,30 @@ public class ExportReportThread extends Thread {
sb = getExportContent(result); sb = getExportContent(result);
} }
} else if (export.getFunctionType().equals(FunctionEnumType.EVENTSTATS.getKey())) {
//必传参数:eventCondition、startdate、enddate
String startDate = conditions.get("startdate");
String endDate = conditions.get("enddate");
String eventCondition = conditions.get("eventCondition");
if (StringUtil.isEmpty(eventCondition) || StringUtil.isEmpty(startDate) || StringUtil.isEmpty(endDate)) {
logger.info("事件分析下载条件不全:startDate:" + startDate + ", endDate:" + endDate + ", event:" + eventCondition);
success = false;
} else {
String groupCondition = conditions.get("dimension");
String viewFlag = conditions.get("viewflag");
boolean isDevice = Boolean.valueOf(conditions.get("isdevice"));
Map<String, List> result = eventStatsService.queryEventStatsData(export.getApp(), account.getId(), startDate, endDate,
groupCondition, isDevice, eventCondition, viewFlag);
sb = getExportContent(result);
} }
// else if (export.getFunctionType().equals(FunctionEnumType.EVENTSTATS.getKey())) {
} else if (FunctionEnumType.COMPLICATED_EVENTS.getKey().equals(export.getFunctionType())) { //
// //必传参数:eventCondition、startdate、enddate
// String startDate = conditions.get("startdate");
// String endDate = conditions.get("enddate");
// String eventCondition = conditions.get("eventCondition");
// if (StringUtil.isEmpty(eventCondition) || StringUtil.isEmpty(startDate) || StringUtil.isEmpty(endDate)) {
//
// logger.info("事件分析下载条件不全:startDate:" + startDate + ", endDate:" + endDate + ", event:" + eventCondition);
// success = false;
//
// } else {
//
// String groupCondition = conditions.get("dimension");
// String viewFlag = conditions.get("viewflag");
// boolean isDevice = Boolean.valueOf(conditions.get("isdevice"));
// Map<String, List> result = eventStatsService.queryEventStatsData(export.getApp(), account.getId(), startDate, endDate,
// groupCondition, isDevice, eventCondition, viewFlag);
// sb = getExportContent(result);
// }
//
// }
else if (FunctionEnumType.COMPLICATED_EVENTS.getKey().equals(export.getFunctionType())) {
//必传参数:eventCondition、startdate、enddate //必传参数:eventCondition、startdate、enddate
String startDate = conditions.get("startdate"); String startDate = conditions.get("startdate");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment