提交 1f288b94 编写于 作者: Y youyong205

Merge pull request #856 from chinaboard/master

fix
......@@ -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);
}
......
......@@ -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',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册