相关人员名单导出
This commit is contained in:
+7
-1
@@ -506,7 +506,13 @@ public class ProjectRelatedPersonnelServiceImpl extends ServiceImpl<ProjectRelat
|
|||||||
nowFile.delete();
|
nowFile.delete();
|
||||||
}
|
}
|
||||||
nowFile.mkdirs();
|
nowFile.mkdirs();
|
||||||
HSSFSheet sheet = workbook.createSheet("虚拟清单导入模板");
|
String excelName = "";
|
||||||
|
if(CutEnum.CN.getValue().equals(cut)){
|
||||||
|
excelName = "相关人员名单";
|
||||||
|
}else{
|
||||||
|
excelName = "Personal List";
|
||||||
|
}
|
||||||
|
HSSFSheet sheet = workbook.createSheet(excelName);
|
||||||
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