|
|
|
@ -184,7 +184,6 @@ public class PersonnelResumeServiceImpl extends Service implements PersonnelResu
|
|
|
|
|
xwpfDocuments.add(doc);
|
|
|
|
|
is.close();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
String fileName = paramMap.get("${lastName}") + ".docx";
|
|
|
|
|
System.out.println(fileName);
|
|
|
|
|
FileOutputStream os = null;
|
|
|
|
@ -355,6 +354,13 @@ public class PersonnelResumeServiceImpl extends Service implements PersonnelResu
|
|
|
|
|
return src1Document;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Title: compressAllFileZip
|
|
|
|
|
* @Description: 传递文件路径压缩文件,传递文件夹路径压缩文件夹,注:空的文件夹不会出现在压缩包内
|
|
|
|
|
* @param @param compresspath 需要压缩的文件夹的目录
|
|
|
|
|
* @return void 返回类型
|
|
|
|
|
* @throws
|
|
|
|
|
*/
|
|
|
|
|
public static boolean compressFileToZip(String compresspath) {
|
|
|
|
|
boolean bool = false;
|
|
|
|
|
try {
|
|
|
|
@ -375,6 +381,16 @@ public class PersonnelResumeServiceImpl extends Service implements PersonnelResu
|
|
|
|
|
return bool;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @Title: compressZip
|
|
|
|
|
* @Description: 子文件夹中可能还有文件夹,进行递归
|
|
|
|
|
* @param @param zipOutput
|
|
|
|
|
* @param @param file
|
|
|
|
|
* @param @param suffixpath
|
|
|
|
|
* @param @throws IOException
|
|
|
|
|
* @return void 返回类型
|
|
|
|
|
* @throws
|
|
|
|
|
*/
|
|
|
|
|
private static void compressZip(ZipOutputStream zipOutput, File file, String suffixpath) {
|
|
|
|
|
File[] listFiles = file.listFiles();// 列出所有的文件
|
|
|
|
|
for (File fi : listFiles) {
|
|
|
|
|