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

fix

parent bf1842be
......@@ -25,6 +25,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeEntity entity = new BizHumanResourceResumeEntity();
entity.setId(model.getId());
entity.setName(model.getName());
entity.setCurrentPosition(model.getCurrentPosition());
entity.setPosition(model.getPosition());
entity.setFileUrl(model.getFileUrl());
entity.setCoreSkills(model.getCoreSkills());
......@@ -52,6 +53,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeModel model = new BizHumanResourceResumeModel();
model.setId(entity.getId());
model.setName(entity.getName());
model.setCurrentPosition(entity.getCurrentPosition());
model.setPosition(entity.getPosition());
model.setFileUrl(entity.getFileUrl());
model.setCoreSkills(entity.getCoreSkills());
......@@ -79,6 +81,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeDto dto = new BizHumanResourceResumeDto();
dto.setId(entity.getId());
dto.setName(entity.getName());
dto.setCurrentPosition(entity.getCurrentPosition());
dto.setPosition(entity.getPosition());
dto.setFileUrl(entity.getFileUrl());
dto.setCoreSkills(entity.getCoreSkills());
......@@ -106,6 +109,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeEntity entity = new BizHumanResourceResumeEntity();
entity.setId(dto.getId());
entity.setName(dto.getName());
entity.setCurrentPosition(dto.getCurrentPosition());
entity.setPosition(dto.getPosition());
entity.setFileUrl(dto.getFileUrl());
entity.setCoreSkills(dto.getCoreSkills());
......@@ -165,7 +169,7 @@ public class BizHumanResourceResumeConvert {
}
info.setOccupationalHistory(map);
}
info.setCurrentPosition(entity.getCurrentPosition());
info.setOther(JsonUtils.deSerialize(entity.getOther(), new TypeReference<List<String>>() {
}.getType()));
info.setWorkExperience(JsonUtils.deSerialize(entity.getWorkExperience(), String.class));
......@@ -187,6 +191,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeEntity bizHumanResourceResumeEntity = new BizHumanResourceResumeEntity();
//info
bizHumanResourceResumeEntity.setName(resume.getInfo().getName());
bizHumanResourceResumeEntity.setCurrentPosition(resume.getInfo().getCurrentPosition());
bizHumanResourceResumeEntity.setCoreSkills(JsonUtils.serialize(resume.getInfo().getCoreSkills()));
bizHumanResourceResumeEntity.setEducationBackground(JsonUtils.serialize(resume.getInfo().getEducationBackground()));
bizHumanResourceResumeEntity.setEducationExperience(JsonUtils.serialize(resume.getInfo().getEducationExperience()));
......
......@@ -59,6 +59,20 @@ public class BizHumanResourceResumeDto {
this.fileUrl = fileUrl;
}
/**
* 当前职位
*/
private String currentPosition;
public String getCurrentPosition() {
return currentPosition;
}
public void setCurrentPosition(String currentPosition) {
this.currentPosition = currentPosition;
}
/**
* core_skills
* 核心技能
......
......@@ -57,7 +57,21 @@ public class BizHumanResourceResumeEntity {
public void setFileUrl(String fileUrl) {
this.fileUrl = fileUrl;
}
/** core_skills
/**
* 当前职位
*/
private String currentPosition;
public String getCurrentPosition() {
return currentPosition;
}
public void setCurrentPosition(String currentPosition) {
this.currentPosition = currentPosition;
}
/** core_skills
*核心技能
*/
private java.lang.String coreSkills;
......
......@@ -6,6 +6,7 @@ import java.util.Map;
public class Info {
private String name;
private String currentPosition;
private List<String> coreSkills;
private String educationBackground;
private Map<String, String> educationExperience;
......@@ -23,6 +24,14 @@ public class Info {
this.name = name;
}
public String getCurrentPosition() {
return currentPosition;
}
public void setCurrentPosition(String currentPosition) {
this.currentPosition = currentPosition;
}
public List<String> getCoreSkills() {
return coreSkills;
}
......
......@@ -79,6 +79,21 @@ public class BizHumanResourceResumeModel extends BaseModelClass implements Seria
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");
}
/**
* 简历文件地址
*/
......
......@@ -220,7 +220,7 @@ public class PortalServiceImpl implements PortalService {
if (CollectionUtils.isNotEmpty(knowledgeContentResults)) {
String knowledgeContent = JsonUtils.serialize(knowledgeContentResults);
prompt = prompt.replace("${knowledgeContent}", knowledgeContent);
} else {
} else {
prompt = prompt.replace("${knowledgeContent}", StringUtils.EMPTY);
}
if (toolFunction != null) {
......
......@@ -63,7 +63,7 @@ public class FileUtilsTest {
@Test
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);
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