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

pull/123/head^2
Mlin 2 years ago
parent c7ce7ea540
commit 00ab437f9e

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

@ -184,7 +184,6 @@ public class PersonnelResumeServiceImpl extends Service implements PersonnelResu
xwpfDocuments.add(doc); xwpfDocuments.add(doc);
is.close(); is.close();
String fileName = paramMap.get("${lastName}") + ".docx"; String fileName = paramMap.get("${lastName}") + ".docx";
System.out.println(fileName); System.out.println(fileName);
FileOutputStream os = null; FileOutputStream os = null;
@ -355,6 +354,13 @@ public class PersonnelResumeServiceImpl extends Service implements PersonnelResu
return src1Document; return src1Document;
} }
/**
* @Title: compressAllFileZip
* @Description:
* @param @param compresspath
* @return void
* @throws
*/
public static boolean compressFileToZip(String compresspath) { public static boolean compressFileToZip(String compresspath) {
boolean bool = false; boolean bool = false;
try { try {
@ -375,6 +381,16 @@ public class PersonnelResumeServiceImpl extends Service implements PersonnelResu
return bool; 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) { private static void compressZip(ZipOutputStream zipOutput, File file, String suffixpath) {
File[] listFiles = file.listFiles();// 列出所有的文件 File[] listFiles = file.listFiles();// 列出所有的文件
for (File fi : listFiles) { for (File fi : listFiles) {

Loading…
Cancel
Save