Commit f3c97c25 by Huang Linyu

change exported file name

parent b5235469
......@@ -57,7 +57,7 @@ public class VoucherController {
StringBuilder excelName = new StringBuilder();
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd_HH:mm:ss_");
excelName.append(format.format(new Date()));
excelName.append("未使用抵用券列表");
excelName.append("未到期抵用券列表");
try {
response.setHeader("Content-disposition", "attachment;filename=" + new String(excelName.toString().getBytes("gb2312"), "ISO8859-1") + ".xlsx");
ServletOutputStream outputStream = response.getOutputStream();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment