Просмотр исходного кода

Use ExportType.name() rather than ExportType.getQualifier() when call export

sunyj 8 лет назад
Родитель
Сommit
59698a7c63
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      src/main/java/com/uas/report/controller/PrintController.java

+ 4 - 4
src/main/java/com/uas/report/controller/PrintController.java

@@ -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;
 		}