提交 dc17bcda 作者: lixiaojuan

cms地址变更

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