Package com.narirelays.ems.persistence.orm

Examples of com.narirelays.ems.persistence.orm.MonthReportId


    {
      SimpleDateFormat sdfm = new SimpleDateFormat("yyyy-MM");
      try {
        String mDateString = sdfm.format(queryDatePar);
        Date mDate = sdfm.parse(mDateString);//得到的日期是yyyy-MM-1
        MonthReportId reportID = new MonthReportId(template.getId(), new Timestamp(mDate.getTime()));
        monthReport = monthReportDAO.findById(reportID);
        if(monthReport!=null&&!queryStyle.equalsIgnoreCase("refresh"))
        {
          //不是刷新模式,则直接返回离线库中的值
          bean.set("code", monthReport.getCode());
View Full Code Here


    List<ReportTemplate>templates = reportTemplateDAO.findByProperty("reportType", "month");
    Date timeStamp = new Date();
    for(ReportTemplate template:templates)
    {
      String code = getReport(template, date);//实例化报表
      MonthReportId ID = new MonthReportId(template.getId(), new Timestamp(date.getTime()));
      MonthReport monthReport = new MonthReport(ID);
      monthReport.setCode(code);
      monthReport.setUpdateTime(new Timestamp(timeStamp.getTime()));
      monthReportDAO.merge(monthReport);
    }
View Full Code Here

TOP

Related Classes of com.narirelays.ems.persistence.orm.MonthReportId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.