修改中文文档为英文
This commit is contained in:
+3
-3
@@ -975,16 +975,16 @@ public class DocumentSplitServiceImpl implements IDocumentSplitService {
|
||||
public void downloadImportTemplate(HttpServletRequest request, HttpServletResponse response) {
|
||||
// 水平越权
|
||||
isHorizontalOverstep(request.getParameter("infoId"));
|
||||
ClassPathResource resource = new ClassPathResource("excelTemplate/条款导入模板.xlsx");
|
||||
ClassPathResource resource = new ClassPathResource("excelTemplate/clauseImport.xlsx");
|
||||
// 设置HTTP响应头,包括文件大小和内容类型
|
||||
response.setContentType("application/vnd.ms-excel"); // 根据实际文件类型设置内容类型
|
||||
response.setHeader("Content-Disposition", "attachment; filename=条款导入模板.xlsx");
|
||||
response.setHeader("Content-Disposition", "attachment; filename=clauseImport.xlsx");
|
||||
String filePath = "";
|
||||
// 将文件内容写入HTTP响应输出流中
|
||||
try (InputStream in = resource.getInputStream()) {
|
||||
// 导出文件
|
||||
filePath = exportExcelTempPath + File.separator + "条款导入模板";
|
||||
String excelFilePath = filePath + File.separator + "条款导入模板.xlsx";
|
||||
String excelFilePath = filePath + File.separator + "clauseImport.xlsx";
|
||||
writeToLocal(excelFilePath, in);
|
||||
ZipUtil.toZip(filePath, response.getOutputStream(), response, true);
|
||||
} catch (IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user