public String downloadReportDay() {
   String ids = getParaValue("ids");
   String type = getParaValue("type");
   String reportType = getParaValue("reportType");
   String exportType = getParaValue("exportType");
   SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
   if (ids == null || ids.equals("") || ids.equals("null")) {
     String id = request.getParameter("id");
     if (id.equals("null")) return null;
     CompreReportInfo report = new CompreReportInfo();
     CompreReportUtilDao dao = new CompreReportUtilDao();
     report = (CompreReportInfo) dao.findByID(id);
     ids = report.getIds();
   }
   String filename = "";
   if ("hostNet".equalsIgnoreCase(type)) {
     if (exportType.equals("xls")) {
       filename = "/temp/compreDay_report.xls";
     } else if (exportType.equals("doc")) {
       filename = "/temp/compreDay_report.doc";
     } else if (exportType.equals("pdf")) {
       filename = "/temp/compreDay_report.pdf";
     }
   }
   String filePath = ResourceCenter.getInstance().getSysPath() + filename;
   String startTime = getParaValue("startdate");
   String toTime = startTime;
   if (startTime == null) {
     startTime = sdf.format(new Date()) + " 00:00:00";
   } else {
     startTime = startTime + " 00:00:00";
   }
   if (toTime == null) {
     toTime = sdf.format(new Date()) + " 23:59:59";
   } else {
     toTime = toTime + " 23:59:59";
   }
   CompreReportExport export = new CompreReportExport();
   export.exportReportByDay(ids, type, reportType, filePath, startTime, toTime, exportType, null);
   request.setAttribute("filename", filePath);
   return "/capreport/net/download.jsp";
 }