修改导出总表名称
parent
053cc77bc9
commit
9fdd766f69
|
@ -143,7 +143,7 @@ public class ProjectController extends BaseController {
|
|||
@RequestMapping("/exportAll")
|
||||
public void exportAll(HttpServletResponse response, Integer id) throws IOException {
|
||||
Project project = projectRepository.findOne(id);
|
||||
response.setHeader("Content-Disposition", "attachment;filename=".concat(new String((Utils.generateExcelName("项目信息总表")).getBytes(), StandardCharsets.ISO_8859_1)));
|
||||
response.setHeader("Content-Disposition", "attachment;filename=".concat(new String((Utils.generateExcelName(project.getName())).getBytes(), StandardCharsets.ISO_8859_1)));
|
||||
response.setHeader("Connection", "close");
|
||||
response.setHeader("Content-Type", "application/vnd.ms-excel");
|
||||
ServletOutputStream outputStream = response.getOutputStream();
|
||||
|
|
Loading…
Reference in New Issue