|
|
@@ -89,20 +89,20 @@ public class PrintController {
|
|
|
request.getRequestDispatcher("preview").forward(request, response);
|
|
|
break;
|
|
|
case PDF:
|
|
|
- export(userName, profile, reportName, whereCondition, otherParameters, ExportType.PDF.getQualifier(), true,
|
|
|
+ export(userName, profile, reportName, whereCondition, otherParameters, ExportType.PDF.name(), true,
|
|
|
title, request, response);
|
|
|
break;
|
|
|
// 该下载接口供 UAS 系统使用,应其要求,printType 为{@link PrintType.EXCEL}时,下载纯数据的 excel
|
|
|
case EXCEL:
|
|
|
- export(userName, profile, reportName, whereCondition, otherParameters, ExportType.XLS_DATA.getQualifier(),
|
|
|
+ export(userName, profile, reportName, whereCondition, otherParameters, ExportType.XLS_DATA.name(),
|
|
|
true, title, request, response);
|
|
|
break;
|
|
|
case WORD:
|
|
|
- export(userName, profile, reportName, whereCondition, otherParameters, ExportType.DOC.getQualifier(), true,
|
|
|
+ export(userName, profile, reportName, whereCondition, otherParameters, ExportType.DOC.name(), true,
|
|
|
title, request, response);
|
|
|
break;
|
|
|
case TEXT:
|
|
|
- export(userName, profile, reportName, whereCondition, otherParameters, ExportType.TXT.getQualifier(), true,
|
|
|
+ export(userName, profile, reportName, whereCondition, otherParameters, ExportType.TXT.name(), true,
|
|
|
title, request, response);
|
|
|
break;
|
|
|
}
|