diff --git a/cat-home/src/main/java/com/dianping/cat/report/page/storage/task/StorageReportBuilder.java b/cat-home/src/main/java/com/dianping/cat/report/page/storage/task/StorageReportBuilder.java index 674252e69148d6a397071970216ead451a7c1968..49b36224dda81073f26678aaa550027fdbc1b374 100644 --- a/cat-home/src/main/java/com/dianping/cat/report/page/storage/task/StorageReportBuilder.java +++ b/cat-home/src/main/java/com/dianping/cat/report/page/storage/task/StorageReportBuilder.java @@ -65,7 +65,7 @@ public class StorageReportBuilder implements TaskBuilder { end = TaskHelper.nextMonthStart(period); } - StorageReport eventReport = queryDailyReportsByDuration(reportId, period, end); + StorageReport storageReport = queryDailyReportsByDuration(reportId, period, end); MonthlyReport report = new MonthlyReport(); report.setCreationDate(new Date()); @@ -74,7 +74,7 @@ public class StorageReportBuilder implements TaskBuilder { report.setName(name); report.setPeriod(period); report.setType(1); - byte[] binaryContent = DefaultNativeBuilder.build(eventReport); + byte[] binaryContent = DefaultNativeBuilder.build(storageReport); return m_reportService.insertMonthlyReport(report, binaryContent); } @@ -88,7 +88,7 @@ public class StorageReportBuilder implements TaskBuilder { end = new Date(period.getTime() + TimeHelper.ONE_WEEK); } - StorageReport eventReport = queryDailyReportsByDuration(reportId, period, end); + StorageReport storageReport = queryDailyReportsByDuration(reportId, period, end); WeeklyReport report = new WeeklyReport(); report.setCreationDate(new Date()); @@ -97,7 +97,7 @@ public class StorageReportBuilder implements TaskBuilder { report.setName(name); report.setPeriod(period); report.setType(1); - byte[] binaryContent = DefaultNativeBuilder.build(eventReport); + byte[] binaryContent = DefaultNativeBuilder.build(storageReport); return m_reportService.insertWeeklyReport(report, binaryContent); } diff --git a/script/Cat.sql b/script/Cat.sql index d472344d2f27e691a8fa26f5fa096aba02d610d6..076be2275db6bdd1ea77093701e5d3e4fafc0b40 100644 --- a/script/Cat.sql +++ b/script/Cat.sql @@ -296,7 +296,7 @@ CREATE TABLE `web_api_data_1` ( PRIMARY KEY (`id`), UNIQUE KEY `IX_condition` (`period`,`minute_order`,`city`,`operator`,`code`), KEY `updatetime` (`updatetime`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='web基本数据';) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='web基本数据'; CREATE TABLE `overload` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增长ID',