提交 dc17bcda 作者: lixiaojuan

cms地址变更

上级 96ec7169
...@@ -52,6 +52,7 @@ public class ExcelExportService { ...@@ -52,6 +52,7 @@ public class ExcelExportService {
workbook = new SXSSFWorkbook(1000); workbook = new SXSSFWorkbook(1000);
workbook.setCompressTempFiles(true); workbook.setCompressTempFiles(true);
int i=1; int i=1;
String fileName = exportReqList.get(0).getFileName();
for (ExportReq exportReq : exportReqList) { for (ExportReq exportReq : exportReqList) {
ExportDataResponse resp = null; ExportDataResponse resp = null;
String serviceName = exportReq.getServiceName(); String serviceName = exportReq.getServiceName();
...@@ -114,7 +115,7 @@ public class ExcelExportService { ...@@ -114,7 +115,7 @@ public class ExcelExportService {
// 最后写到 response // 最后写到 response
log.info("生成excel结束------->" + System.currentTimeMillis()); log.info("生成excel结束------->" + System.currentTimeMillis());
writeExcelToResponse("导出", workbook, response); writeExcelToResponse(fileName, workbook, response);
} catch (Exception e) { } catch (Exception e) {
log.error("导出Excel异常", e); log.error("导出Excel异常", e);
...@@ -309,7 +310,7 @@ public class ExcelExportService { ...@@ -309,7 +310,7 @@ public class ExcelExportService {
response.reset(); response.reset();
response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"); response.setContentType("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
String fileName = URLEncoder.encode( String fileName = URLEncoder.encode(
(fileNamePrefix != null ? fileNamePrefix : "导出") + System.currentTimeMillis() + ".xlsx", (fileNamePrefix != null ? fileNamePrefix : "导出") + ".xlsx",
"UTF-8" "UTF-8"
); );
response.setHeader("Content-Disposition", "attachment;filename=" + fileName); response.setHeader("Content-Disposition", "attachment;filename=" + fileName);
......
...@@ -27,4 +27,4 @@ forest: ...@@ -27,4 +27,4 @@ forest:
connect-timeout: 600000 # HTTP请求连接超时时间 connect-timeout: 600000 # HTTP请求连接超时时间
read-timeout: 600000 # HTTP请求读取超时时间 read-timeout: 600000 # HTTP请求读取超时时间
variables: variables:
cmsQuestionUrl: http://1.95.77.159:10089/api/v4/cms/cmsSubject/getSubjectRelationInfo cmsQuestionUrl: http://1.95.14.24:20602/cms/cmsSubject/getSubjectRelationInfo
\ No newline at end of file \ No newline at end of file
...@@ -27,4 +27,4 @@ forest: ...@@ -27,4 +27,4 @@ forest:
connect-timeout: 600000 # HTTP请求连接超时时间 connect-timeout: 600000 # HTTP请求连接超时时间
read-timeout: 600000 # HTTP请求读取超时时间 read-timeout: 600000 # HTTP请求读取超时时间
variables: variables:
cmsQuestionUrl: http://1.95.77.159:10089/api/v4/cms/cmsSubject/getSubjectRelationInfo cmsQuestionUrl: http://1.95.14.24:20602/cms/cmsSubject/getSubjectRelationInfo
\ No newline at end of file \ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论