增加全部人员简历下载条件(去除离职)(20230106)

This commit is contained in:
Mlin 2023-01-06 15:32:31 +08:00
parent c7ce7ea540
commit 00ab437f9e
2 changed files with 18 additions and 1 deletions

View File

@ -73,6 +73,7 @@
from hrmresource h
inner join hrmdepartment a on a.id = h.departmentid
inner join hrmjobtitles b on b.id = h.jobtitle
where h.status < 4
</select>
<select id="getHrmFamilyInfoByUser" resultType="com.engine.organization.entity.resume.po.HrmFamilyInfoPO">
select *

View File

@ -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) {