Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
caosy
/
fun-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f3c97c25
authored
Dec 18, 2017
by
Huang Linyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change exported file name
parent
b5235469
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/main/java/com/ctrip/fun/admin/controller/basic/VoucherController.java
src/main/java/com/ctrip/fun/admin/controller/basic/VoucherController.java
View file @
f3c97c25
...
@@ -57,7 +57,7 @@ public class VoucherController {
...
@@ -57,7 +57,7 @@ public class VoucherController {
StringBuilder
excelName
=
new
StringBuilder
();
StringBuilder
excelName
=
new
StringBuilder
();
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd_HH:mm:ss_"
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyy-MM-dd_HH:mm:ss_"
);
excelName
.
append
(
format
.
format
(
new
Date
()));
excelName
.
append
(
format
.
format
(
new
Date
()));
excelName
.
append
(
"未
使用
抵用券列表"
);
excelName
.
append
(
"未
到期
抵用券列表"
);
try
{
try
{
response
.
setHeader
(
"Content-disposition"
,
"attachment;filename="
+
new
String
(
excelName
.
toString
().
getBytes
(
"gb2312"
),
"ISO8859-1"
)
+
".xlsx"
);
response
.
setHeader
(
"Content-disposition"
,
"attachment;filename="
+
new
String
(
excelName
.
toString
().
getBytes
(
"gb2312"
),
"ISO8859-1"
)
+
".xlsx"
);
ServletOutputStream
outputStream
=
response
.
getOutputStream
();
ServletOutputStream
outputStream
=
response
.
getOutputStream
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment