|
@@ -3,6 +3,7 @@
|
|
|
*/
|
|
|
package com.jeeplus.modules.sg.financial.settlement.service;
|
|
|
|
|
|
+import com.jeeplus.common.utils.StringUtils;
|
|
|
import com.jeeplus.core.persistence.Page;
|
|
|
import com.jeeplus.core.service.CrudService;
|
|
|
import com.jeeplus.modules.sg.financial.settlement.entity.MaintainData;
|
|
@@ -16,6 +17,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
import java.io.IOException;
|
|
|
import java.io.OutputStream;
|
|
|
+import java.net.URLEncoder;
|
|
|
import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
|
|
@@ -110,11 +112,10 @@ public class DataMaintenanceService extends CrudService<DataMaintenanceMapper, M
|
|
|
Workbook workbook = null;
|
|
|
try {
|
|
|
workbook = ExcelWriter.exportHeard();
|
|
|
- long time = System.currentTimeMillis();
|
|
|
- String outFile = time + ".xlsx";
|
|
|
+ String str = URLEncoder.encode("数据维护导入模板.xlsx", "UTF8");
|
|
|
OutputStream outputStream = response.getOutputStream();
|
|
|
response.reset();
|
|
|
- response.setHeader("Content-Disposition", "attachment;filename="+outFile);
|
|
|
+ response.setHeader("Content-Disposition", "attachment;filename="+str);
|
|
|
response.setContentType("application/vnd.ms-excel;charset=UTF-8");
|
|
|
workbook.write(outputStream);
|
|
|
outputStream.flush();
|