Commit 10f82465 authored by alex yao's avatar alex yao

feat[AI人力]:简历-新增学历层次字段

parent e246a2b6
......@@ -29,6 +29,7 @@ public class BizHumanResourceResumeConvert {
entity.setPosition(model.getPosition());
entity.setFileUrl(model.getFileUrl());
entity.setCoreSkills(model.getCoreSkills());
entity.setEducationLevel(model.getEducationLevel());
entity.setEducationBackground(model.getEducationBackground());
entity.setEducationExperience(model.getEducationExperience());
entity.setGenderAndAge(model.getGenderAndAge());
......@@ -57,6 +58,7 @@ public class BizHumanResourceResumeConvert {
model.setPosition(entity.getPosition());
model.setFileUrl(entity.getFileUrl());
model.setCoreSkills(entity.getCoreSkills());
model.setEducationLevel(entity.getEducationLevel());
model.setEducationBackground(entity.getEducationBackground());
model.setEducationExperience(entity.getEducationExperience());
model.setGenderAndAge(entity.getGenderAndAge());
......@@ -85,6 +87,7 @@ public class BizHumanResourceResumeConvert {
dto.setPosition(entity.getPosition());
dto.setFileUrl(entity.getFileUrl());
dto.setCoreSkills(entity.getCoreSkills());
dto.setEducationLevel(entity.getEducationLevel());
dto.setEducationBackground(entity.getEducationBackground());
dto.setEducationExperience(entity.getEducationExperience());
dto.setGenderAndAge(entity.getGenderAndAge());
......@@ -113,6 +116,7 @@ public class BizHumanResourceResumeConvert {
entity.setPosition(dto.getPosition());
entity.setFileUrl(dto.getFileUrl());
entity.setCoreSkills(dto.getCoreSkills());
entity.setEducationLevel(dto.getEducationLevel());
entity.setEducationBackground(dto.getEducationBackground());
entity.setEducationExperience(dto.getEducationExperience());
entity.setGenderAndAge(dto.getGenderAndAge());
......@@ -143,6 +147,7 @@ public class BizHumanResourceResumeConvert {
info.setName(entity.getName());
info.setCoreSkills(JsonUtils.deSerialize(entity.getCoreSkills(), new TypeReference<List<String>>() {
}.getType()));
info.setEducationLevel(entity.getEducationLevel());
info.setEducationBackground(JsonUtils.deSerialize(entity.getEducationBackground(), String.class));
if (StringUtils.isNotBlank(entity.getEducationExperience())) {
......@@ -193,10 +198,14 @@ public class BizHumanResourceResumeConvert {
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()));
bizHumanResourceResumeEntity.setEducationLevel(resume.getInfo().getEducationLevel());
bizHumanResourceResumeEntity.setEducationBackground(
JsonUtils.serialize(resume.getInfo().getEducationBackground()));
bizHumanResourceResumeEntity.setEducationExperience(
JsonUtils.serialize(resume.getInfo().getEducationExperience()));
bizHumanResourceResumeEntity.setGenderAndAge(JsonUtils.serialize(resume.getInfo().getGenderAndAge()));
bizHumanResourceResumeEntity.setOccupationalHistory(JsonUtils.serialize(resume.getInfo().getOccupationalHistory()));
bizHumanResourceResumeEntity.setOccupationalHistory(
JsonUtils.serialize(resume.getInfo().getOccupationalHistory()));
bizHumanResourceResumeEntity.setOther(JsonUtils.serialize(resume.getInfo().getOther()));
bizHumanResourceResumeEntity.setWorkExperience(JsonUtils.serialize(resume.getInfo().getWorkExperience()));
bizHumanResourceResumeEntity.setWorkLocation(JsonUtils.serialize(resume.getInfo().getWorkLocation()));
......
......@@ -87,6 +87,20 @@ public class BizHumanResourceResumeDto {
this.coreSkills = coreSkills;
}
/**
* education_level
* 学历
*/
private Integer educationLevel;
public Integer getEducationLevel() {
return educationLevel;
}
public void setEducationLevel(Integer educationLevel) {
this.educationLevel = educationLevel;
}
/**
* education_background
* 教育背景
......
package cn.com.poc.human_resources.entity;
import javax.persistence.Column;
public class BizHumanResourceResumeEntity {
private static final long serialVersionUID = 1L;
......@@ -83,6 +81,22 @@ public class BizHumanResourceResumeEntity {
public void setCoreSkills(java.lang.String coreSkills){
this.coreSkills = coreSkills;
}
/**
* education_level
* 学历
*/
private Integer educationLevel;
public Integer getEducationLevel() {
return educationLevel;
}
public void setEducationLevel(Integer educationLevel) {
this.educationLevel = educationLevel;
}
/** education_background
*教育背景
*/
......
......@@ -8,6 +8,7 @@ public class Info {
private String name;
private String currentPosition;
private List<String> coreSkills;
private Integer educationLevel;
private String educationBackground;
private Map<String, String> educationExperience;
private String genderAndAge;
......@@ -40,6 +41,14 @@ public class Info {
this.coreSkills = coreSkills;
}
public Integer getEducationLevel() {
return educationLevel;
}
public void setEducationLevel(Integer educationLevel) {
this.educationLevel = educationLevel;
}
public String getEducationBackground() {
return educationBackground;
}
......
......@@ -125,6 +125,21 @@ public class BizHumanResourceResumeModel extends BaseModelClass implements Seria
super.addValidField("coreSkills");
}
/**
* education_level
* 学历
*/
private Integer educationLevel;
@Column(name = "education_level", length = 22)
public Integer getEducationLevel() {
return educationLevel;
}
public void setEducationLevel(Integer educationLevel) {
this.educationLevel = educationLevel;
super.addValidField("educationLevel");
}
/**
* education_background
......
......@@ -75,6 +75,9 @@ public class BizHumanResourceResumeServiceImpl extends BaseServiceImpl
if (entity.getCoreSkills() != null) {
model.setCoreSkills(entity.getCoreSkills());
}
if (entity.getEducationLevel() != null) {
model.setEducationLevel(entity.getEducationLevel());
}
if (entity.getEducationBackground() != null) {
model.setEducationBackground(entity.getEducationBackground());
}
......
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