67262 文档库-英文版模板下载-工作表名称是中文问题修改。
This commit is contained in:
+8
-1
@@ -5076,6 +5076,13 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
public void exportTemplate(Map<String, Object> map, HttpServletResponse response, HttpServletRequest request) {
|
public void exportTemplate(Map<String, Object> map, HttpServletResponse response, HttpServletRequest request) {
|
||||||
OutputStream os = null;
|
OutputStream os = null;
|
||||||
HSSFWorkbook workbook = new HSSFWorkbook();
|
HSSFWorkbook workbook = new HSSFWorkbook();
|
||||||
|
String cut = (String) map.get("cut");
|
||||||
|
String sheetName = "";
|
||||||
|
if(StringUtils.equals(cut,CutEnum.CN.getValue())){
|
||||||
|
sheetName = "文档库导入模板";
|
||||||
|
}else {
|
||||||
|
sheetName = "Document LibraryImport Template";
|
||||||
|
}
|
||||||
String fileOriName = "文档库导入模板.xls";
|
String fileOriName = "文档库导入模板.xls";
|
||||||
String filePath = uploadpath + File.separator + fileOriName;
|
String filePath = uploadpath + File.separator + fileOriName;
|
||||||
try {
|
try {
|
||||||
@@ -5086,7 +5093,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
nowFile.delete();
|
nowFile.delete();
|
||||||
}
|
}
|
||||||
nowFile.mkdirs();
|
nowFile.mkdirs();
|
||||||
HSSFSheet sheet = workbook.createSheet("文档库导入模板");
|
HSSFSheet sheet = workbook.createSheet(sheetName);
|
||||||
sheet.setDefaultColumnWidth(16);//列宽
|
sheet.setDefaultColumnWidth(16);//列宽
|
||||||
HSSFCellStyle cellStyle = workbook.createCellStyle();
|
HSSFCellStyle cellStyle = workbook.createCellStyle();
|
||||||
cellStyle.setWrapText(true);//自动换行
|
cellStyle.setWrapText(true);//自动换行
|
||||||
|
|||||||
Reference in New Issue
Block a user