Explorar o código

修复获取文件信息时类型指定错误的问题

sunyj %!s(int64=8) %!d(string=hai) anos
pai
achega
115a4d1932

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

@@ -349,8 +349,8 @@ public class PrintController {
 		if (StringUtils.isEmpty(fileType)) {
 			fileType = ReportConstants.PDF_FILE_TYPE;
 		}
-		String filePath = ReportConstants.GENERATED_FILES_PATH + reportName + "/" + fileService.generateFileName(
-				userName, profile, reportName, whereCondition, otherParameters, ReportConstants.PDF_FILE_TYPE);
+		String filePath = ReportConstants.GENERATED_FILES_PATH + reportName + "/" + fileService
+				.generateFileName(userName, profile, reportName, whereCondition, otherParameters, fileType);
 		File file = null;
 
 		String masterOfJrxml = printService.getMasterOfJrxml(userName, reportName);