|
|
|
@ -157,9 +157,16 @@ public class PersonnelResumeServiceImpl extends Service implements PersonnelResu
|
|
|
|
|
// 处理赋值的数据
|
|
|
|
|
List<Map<String, Object>> dataMapList = getAllResumeList();
|
|
|
|
|
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd");
|
|
|
|
|
String filesPath = outPutPath + "wordZip" + File.separator + simpleDateFormat.format(new Date());
|
|
|
|
|
String filesPath = outPutPath + "wordZip" + File.separator + "全部简历";
|
|
|
|
|
String fileAllWordPath = outPutPath + "wordZip";
|
|
|
|
|
String wordName = "全体人员简历合并导出";
|
|
|
|
|
String wordName = "全体人员简历(合并)";
|
|
|
|
|
File files = new File(filesPath);
|
|
|
|
|
if (!files.exists()) {
|
|
|
|
|
files.mkdirs();
|
|
|
|
|
} else {
|
|
|
|
|
delFolder(files.getPath());
|
|
|
|
|
files.mkdirs();
|
|
|
|
|
}
|
|
|
|
|
//处理所有数据
|
|
|
|
|
for (int count = 0; count < dataMapList.size(); count++) {
|
|
|
|
|
//处理单人数据
|
|
|
|
@ -177,13 +184,7 @@ public class PersonnelResumeServiceImpl extends Service implements PersonnelResu
|
|
|
|
|
xwpfDocuments.add(doc);
|
|
|
|
|
is.close();
|
|
|
|
|
|
|
|
|
|
File files = new File(filesPath);
|
|
|
|
|
if (!files.exists()) {
|
|
|
|
|
files.mkdirs();
|
|
|
|
|
} else {
|
|
|
|
|
delFolder(files.getPath());
|
|
|
|
|
files.mkdirs();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String fileName = paramMap.get("${lastName}") + ".docx";
|
|
|
|
|
System.out.println(fileName);
|
|
|
|
|
FileOutputStream os = null;
|
|
|
|
|