Commit 0513442d authored by alex yao's avatar alex yao

fix

parent bf1842be
...@@ -25,6 +25,7 @@ public class BizHumanResourceResumeConvert { ...@@ -25,6 +25,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeEntity entity = new BizHumanResourceResumeEntity(); BizHumanResourceResumeEntity entity = new BizHumanResourceResumeEntity();
entity.setId(model.getId()); entity.setId(model.getId());
entity.setName(model.getName()); entity.setName(model.getName());
entity.setCurrentPosition(model.getCurrentPosition());
entity.setPosition(model.getPosition()); entity.setPosition(model.getPosition());
entity.setFileUrl(model.getFileUrl()); entity.setFileUrl(model.getFileUrl());
entity.setCoreSkills(model.getCoreSkills()); entity.setCoreSkills(model.getCoreSkills());
...@@ -52,6 +53,7 @@ public class BizHumanResourceResumeConvert { ...@@ -52,6 +53,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeModel model = new BizHumanResourceResumeModel(); BizHumanResourceResumeModel model = new BizHumanResourceResumeModel();
model.setId(entity.getId()); model.setId(entity.getId());
model.setName(entity.getName()); model.setName(entity.getName());
model.setCurrentPosition(entity.getCurrentPosition());
model.setPosition(entity.getPosition()); model.setPosition(entity.getPosition());
model.setFileUrl(entity.getFileUrl()); model.setFileUrl(entity.getFileUrl());
model.setCoreSkills(entity.getCoreSkills()); model.setCoreSkills(entity.getCoreSkills());
...@@ -79,6 +81,7 @@ public class BizHumanResourceResumeConvert { ...@@ -79,6 +81,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeDto dto = new BizHumanResourceResumeDto(); BizHumanResourceResumeDto dto = new BizHumanResourceResumeDto();
dto.setId(entity.getId()); dto.setId(entity.getId());
dto.setName(entity.getName()); dto.setName(entity.getName());
dto.setCurrentPosition(entity.getCurrentPosition());
dto.setPosition(entity.getPosition()); dto.setPosition(entity.getPosition());
dto.setFileUrl(entity.getFileUrl()); dto.setFileUrl(entity.getFileUrl());
dto.setCoreSkills(entity.getCoreSkills()); dto.setCoreSkills(entity.getCoreSkills());
...@@ -106,6 +109,7 @@ public class BizHumanResourceResumeConvert { ...@@ -106,6 +109,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeEntity entity = new BizHumanResourceResumeEntity(); BizHumanResourceResumeEntity entity = new BizHumanResourceResumeEntity();
entity.setId(dto.getId()); entity.setId(dto.getId());
entity.setName(dto.getName()); entity.setName(dto.getName());
entity.setCurrentPosition(dto.getCurrentPosition());
entity.setPosition(dto.getPosition()); entity.setPosition(dto.getPosition());
entity.setFileUrl(dto.getFileUrl()); entity.setFileUrl(dto.getFileUrl());
entity.setCoreSkills(dto.getCoreSkills()); entity.setCoreSkills(dto.getCoreSkills());
...@@ -165,7 +169,7 @@ public class BizHumanResourceResumeConvert { ...@@ -165,7 +169,7 @@ public class BizHumanResourceResumeConvert {
} }
info.setOccupationalHistory(map); info.setOccupationalHistory(map);
} }
info.setCurrentPosition(entity.getCurrentPosition());
info.setOther(JsonUtils.deSerialize(entity.getOther(), new TypeReference<List<String>>() { info.setOther(JsonUtils.deSerialize(entity.getOther(), new TypeReference<List<String>>() {
}.getType())); }.getType()));
info.setWorkExperience(JsonUtils.deSerialize(entity.getWorkExperience(), String.class)); info.setWorkExperience(JsonUtils.deSerialize(entity.getWorkExperience(), String.class));
...@@ -187,6 +191,7 @@ public class BizHumanResourceResumeConvert { ...@@ -187,6 +191,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeEntity bizHumanResourceResumeEntity = new BizHumanResourceResumeEntity(); BizHumanResourceResumeEntity bizHumanResourceResumeEntity = new BizHumanResourceResumeEntity();
//info //info
bizHumanResourceResumeEntity.setName(resume.getInfo().getName()); bizHumanResourceResumeEntity.setName(resume.getInfo().getName());
bizHumanResourceResumeEntity.setCurrentPosition(resume.getInfo().getCurrentPosition());
bizHumanResourceResumeEntity.setCoreSkills(JsonUtils.serialize(resume.getInfo().getCoreSkills())); bizHumanResourceResumeEntity.setCoreSkills(JsonUtils.serialize(resume.getInfo().getCoreSkills()));
bizHumanResourceResumeEntity.setEducationBackground(JsonUtils.serialize(resume.getInfo().getEducationBackground())); bizHumanResourceResumeEntity.setEducationBackground(JsonUtils.serialize(resume.getInfo().getEducationBackground()));
bizHumanResourceResumeEntity.setEducationExperience(JsonUtils.serialize(resume.getInfo().getEducationExperience())); bizHumanResourceResumeEntity.setEducationExperience(JsonUtils.serialize(resume.getInfo().getEducationExperience()));
......
...@@ -59,6 +59,20 @@ public class BizHumanResourceResumeDto { ...@@ -59,6 +59,20 @@ public class BizHumanResourceResumeDto {
this.fileUrl = fileUrl; this.fileUrl = fileUrl;
} }
/**
* 当前职位
*/
private String currentPosition;
public String getCurrentPosition() {
return currentPosition;
}
public void setCurrentPosition(String currentPosition) {
this.currentPosition = currentPosition;
}
/** /**
* core_skills * core_skills
* 核心技能 * 核心技能
......
...@@ -57,6 +57,20 @@ public class BizHumanResourceResumeEntity { ...@@ -57,6 +57,20 @@ public class BizHumanResourceResumeEntity {
public void setFileUrl(String fileUrl) { public void setFileUrl(String fileUrl) {
this.fileUrl = fileUrl; this.fileUrl = fileUrl;
} }
/**
* 当前职位
*/
private String currentPosition;
public String getCurrentPosition() {
return currentPosition;
}
public void setCurrentPosition(String currentPosition) {
this.currentPosition = currentPosition;
}
/** core_skills /** core_skills
*核心技能 *核心技能
*/ */
......
...@@ -6,6 +6,7 @@ import java.util.Map; ...@@ -6,6 +6,7 @@ import java.util.Map;
public class Info { public class Info {
private String name; private String name;
private String currentPosition;
private List<String> coreSkills; private List<String> coreSkills;
private String educationBackground; private String educationBackground;
private Map<String, String> educationExperience; private Map<String, String> educationExperience;
...@@ -23,6 +24,14 @@ public class Info { ...@@ -23,6 +24,14 @@ public class Info {
this.name = name; this.name = name;
} }
public String getCurrentPosition() {
return currentPosition;
}
public void setCurrentPosition(String currentPosition) {
this.currentPosition = currentPosition;
}
public List<String> getCoreSkills() { public List<String> getCoreSkills() {
return coreSkills; return coreSkills;
} }
......
...@@ -79,6 +79,21 @@ public class BizHumanResourceResumeModel extends BaseModelClass implements Seria ...@@ -79,6 +79,21 @@ public class BizHumanResourceResumeModel extends BaseModelClass implements Seria
super.addValidField("position"); super.addValidField("position");
} }
/**
* 当前职位
*/
private String currentPosition;
@Column(name = "current_position", length = 100)
public String getCurrentPosition() {
return currentPosition;
}
public void setCurrentPosition(String currentPosition) {
this.currentPosition = currentPosition;
super.addValidField("currentPosition");
}
/** /**
* 简历文件地址 * 简历文件地址
*/ */
......
...@@ -63,7 +63,7 @@ public class FileUtilsTest { ...@@ -63,7 +63,7 @@ public class FileUtilsTest {
@Test @Test
public void test_pdf() { public void test_pdf() {
File file = new File("C:\\Users\\52747\\Documents\\dataset\\迎向AI新纪元:2025企业转型的关键时刻-从2024产业案例看今年生成式AI.pdf"); File file = new File("C:\\Users\\52747\\Desktop\\港口基础设施维护管理信息系统建设规范JTST3302025.pdf");
String pdfResult = DocumentLoad.documentToText(file); String pdfResult = DocumentLoad.documentToText(file);
System.out.println(pdfResult); System.out.println(pdfResult);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment