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

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

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