List<ReportTemplate>templates = reportTemplateDAO.findByProperty("reportType", "day");
Timestamp timeStamp = new Timestamp(new Date().getTime());
for(ReportTemplate template:templates)
{
String code = getReport(template, date);//,通过date去查询单元格查询条件,实例化报表
DayReportId ID = new DayReportId(template.getId(), new Timestamp(date.getTime()));
DayReport dayReport = new DayReport(ID);
dayReport.setCode(code);
dayReport.setUpdateTime(timeStamp);
dayReportDAO.merge(dayReport);
}