|
@@ -88,7 +88,7 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
resumeInfo = new ResumeBaseRecInfo();
|
|
|
resumeInfo.put("applyId", applyId);
|
|
|
resumeInfo.put("candidateId", candidateId);
|
|
|
- } else if (!"00001".equals(resumeInfo.getResumeState().getNumber())) {
|
|
|
+ } else if (!"0001".equals(resumeInfo.getResumeState().getNumber())) {
|
|
|
continue;
|
|
|
}
|
|
|
//通过申请ID获取招聘需求
|
|
@@ -571,11 +571,15 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
try {
|
|
|
IWorkingExp iWorkingExp = WorkingExpFactory.getLocalInstance(ctx);
|
|
|
WorkingExpCollection workingExpColl = iWorkingExp.getWorkingExpCollection("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
- WorkingExpInfo workingExpInfo = workingExpColl.isEmpty() ? new WorkingExpInfo() : workingExpColl.get(0);
|
|
|
- //简历基本信息
|
|
|
- workingExpInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
+ if (!workingExpColl.isEmpty()) {
|
|
|
+ iWorkingExp.delete("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
+ }
|
|
|
+
|
|
|
for (int i = 0; i < workExperience.size(); i++) {
|
|
|
JSONArray array = workExperience.getJSONArray(i);
|
|
|
+ WorkingExpInfo workingExpInfo = new WorkingExpInfo();
|
|
|
+ //简历基本信息
|
|
|
+ workingExpInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
for (int j = 0; j < array.size(); j++) {
|
|
|
JSONObject data = array.getJSONObject(j);
|
|
|
String name = data.getString("name");
|
|
@@ -640,8 +644,9 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
if ("JobArea".equals(name)) {
|
|
|
workingExpInfo.setUnitAddress(text);
|
|
|
}
|
|
|
- iWorkingExp.save(workingExpInfo);
|
|
|
}
|
|
|
+ iWorkingExp.save(workingExpInfo);
|
|
|
+
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
logger.error("简历-工作经历保存失败!" + e.getMessage());
|
|
@@ -658,18 +663,22 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
try {
|
|
|
IEducationExpREC iEducationExpREC = EducationExpRECFactory.getLocalInstance(ctx);
|
|
|
EducationExpRECCollection educationExpRECCollection = iEducationExpREC.getEducationExpRECCollection("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
- EducationExpRECInfo educationExpRECInfo = educationExpRECCollection.isEmpty() ? new EducationExpRECInfo() : educationExpRECCollection.get(0);
|
|
|
+ if (!educationExpRECCollection.isEmpty()) {
|
|
|
+ iEducationExpREC.delete("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
+ }
|
|
|
//学历
|
|
|
IDiploma iDiploma = DiplomaFactory.getLocalInstance(ctx);
|
|
|
//学位
|
|
|
IDegree iDegree = DegreeFactory.getLocalInstance(ctx);
|
|
|
- //简历基本信息
|
|
|
- educationExpRECInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
//学院类型
|
|
|
Map<String, String> bchoolTypeMap = InitialValueUtils.getBchoolTypeMap();
|
|
|
for (int i = 0; i < education.size(); i++) {
|
|
|
JSONArray array = education.getJSONArray(i);
|
|
|
+ EducationExpRECInfo educationExpRECInfo = new EducationExpRECInfo();
|
|
|
+ //简历基本信息
|
|
|
+ educationExpRECInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
for (int j = 0; j < array.size(); j++) {
|
|
|
+
|
|
|
JSONObject data = array.getJSONObject(j);
|
|
|
String name = data.getString("name");
|
|
|
String value = data.getString("value");
|
|
@@ -713,8 +722,9 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
educationExpRECInfo.setSchoolType(SchoolTypeEnum.getEnum(bchoolTypeMap.get(value)));
|
|
|
}
|
|
|
}
|
|
|
- iEducationExpREC.save(educationExpRECInfo);
|
|
|
}
|
|
|
+ iEducationExpREC.save(educationExpRECInfo);
|
|
|
+
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
logger.error("简历-教育经历保存失败!" + e.getMessage());
|
|
@@ -734,11 +744,15 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
IResumeRewardPunish iResumeRewardPunish = ResumeRewardPunishFactory.getLocalInstance(ctx);
|
|
|
ResumeRewardPunishCollection ResumeRewardPunishCollection =
|
|
|
iResumeRewardPunish.getResumeRewardPunishCollection("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
- ResumeRewardPunishInfo ResumeRewardPunishInfo = ResumeRewardPunishCollection.isEmpty() ? new ResumeRewardPunishInfo() : ResumeRewardPunishCollection.get(0);
|
|
|
- //简历基本信息
|
|
|
- ResumeRewardPunishInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
+ if (!ResumeRewardPunishCollection.isEmpty()) {
|
|
|
+ iResumeRewardPunish.delete("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
+ }
|
|
|
+
|
|
|
for (int i = 0; i < awards.size(); i++) {
|
|
|
JSONArray array = awards.getJSONArray(i);
|
|
|
+ ResumeRewardPunishInfo ResumeRewardPunishInfo = new ResumeRewardPunishInfo();
|
|
|
+ //简历基本信息
|
|
|
+ ResumeRewardPunishInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
for (int j = 0; j < array.size(); j++) {
|
|
|
JSONObject data = array.getJSONObject(j);
|
|
|
String name = data.getString("name");
|
|
@@ -757,8 +771,9 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
if ("AwardDescription".equals(name)) {
|
|
|
ResumeRewardPunishInfo.setDescription(text);
|
|
|
}
|
|
|
- iResumeRewardPunish.save(ResumeRewardPunishInfo);
|
|
|
}
|
|
|
+ iResumeRewardPunish.save(ResumeRewardPunishInfo);
|
|
|
+
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
logger.error("简历-获奖经历保存失败!" + e.getMessage());
|
|
@@ -777,12 +792,17 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
IProjectExp iProjectExp = ProjectExpFactory.getLocalInstance(ctx);
|
|
|
ProjectExpCollection ProjectExpCollection =
|
|
|
iProjectExp.getProjectExpCollection("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
- ProjectExpInfo ProjectExpInfo = ProjectExpCollection.isEmpty() ? new ProjectExpInfo() : ProjectExpCollection.get(0);
|
|
|
- //简历基本信息
|
|
|
- ProjectExpInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
+ if (!ProjectExpCollection.isEmpty()) {
|
|
|
+ iProjectExp.delete("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
+ }
|
|
|
+
|
|
|
for (int i = 0; i < project.size(); i++) {
|
|
|
JSONArray array = project.getJSONArray(i);
|
|
|
+ ProjectExpInfo ProjectExpInfo = new ProjectExpInfo();
|
|
|
+ //简历基本信息
|
|
|
+ ProjectExpInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
for (int j = 0; j < array.size(); j++) {
|
|
|
+
|
|
|
JSONObject data = array.getJSONObject(j);
|
|
|
String name = data.getString("name");
|
|
|
String value = data.getString("value");
|
|
@@ -806,8 +826,9 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
if ("ProjectInfo".equals(name)) {
|
|
|
ProjectExpInfo.setProjectDescription(text);
|
|
|
}
|
|
|
- iProjectExp.save(ProjectExpInfo);
|
|
|
}
|
|
|
+ iProjectExp.save(ProjectExpInfo);
|
|
|
+
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
logger.error("简历-项目经历保存失败!" + e.getMessage());
|
|
@@ -826,11 +847,15 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
ITrainingExp iTrainingExp = TrainingExpFactory.getLocalInstance(ctx);
|
|
|
TrainingExpCollection TrainingExpCollection =
|
|
|
iTrainingExp.getTrainingExpCollection("where resumeBaseInfo = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
- TrainingExpInfo TrainingExpInfo = TrainingExpCollection.isEmpty() ? new TrainingExpInfo() : TrainingExpCollection.get(0);
|
|
|
- //简历基本信息
|
|
|
- TrainingExpInfo.setResumeBaseInfo(resumeBaseRecInfo);
|
|
|
+ if (!TrainingExpCollection.isEmpty()) {
|
|
|
+ iTrainingExp.delete("where resumeBaseInfo = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
+ }
|
|
|
+
|
|
|
for (int i = 0; i < train.size(); i++) {
|
|
|
JSONArray array = train.getJSONArray(i);
|
|
|
+ TrainingExpInfo TrainingExpInfo = new TrainingExpInfo();
|
|
|
+ //简历基本信息
|
|
|
+ TrainingExpInfo.setResumeBaseInfo(resumeBaseRecInfo);
|
|
|
for (int j = 0; j < array.size(); j++) {
|
|
|
JSONObject data = array.getJSONObject(j);
|
|
|
String name = data.getString("name");
|
|
@@ -855,8 +880,9 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
if ("Description".equals(name)) {
|
|
|
TrainingExpInfo.setCourseDescription(text);
|
|
|
}
|
|
|
- iTrainingExp.save(TrainingExpInfo);
|
|
|
}
|
|
|
+ iTrainingExp.save(TrainingExpInfo);
|
|
|
+
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
logger.error("简历-培训经历保存失败!" + e.getMessage());
|
|
@@ -877,34 +903,40 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
ICredential iCredential = CredentialFactory.getLocalInstance(ctx);
|
|
|
CredentialCollection CredentialCollection =
|
|
|
iCredential.getCredentialCollection("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
- CredentialInfo CredentialInfo = CredentialCollection.isEmpty() ? new CredentialInfo() : CredentialCollection.get(0);
|
|
|
- //简历基本信息
|
|
|
- CredentialInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
+ if (!CredentialCollection.isEmpty()) {
|
|
|
+ iCredential.delete("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
+ }
|
|
|
+
|
|
|
for (int i = 0; i < certificate.size(); i++) {
|
|
|
JSONArray array = certificate.getJSONArray(i);
|
|
|
+ CredentialInfo credentialInfo = new CredentialInfo();
|
|
|
+ //简历基本信息
|
|
|
+ credentialInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
for (int j = 0; j < array.size(); j++) {
|
|
|
JSONObject data = array.getJSONObject(j);
|
|
|
+
|
|
|
String name = data.getString("name");
|
|
|
String value = data.getString("value");
|
|
|
String text = data.getString("text");
|
|
|
//date 证书发放日期
|
|
|
if ("ObtainDate".equals(name)) {
|
|
|
- CredentialInfo.setDate(DateTimeUtils.parseDate(text, "yyyy/MM"));
|
|
|
+ credentialInfo.setDate(DateTimeUtils.parseDate(text, "yyyy/MM"));
|
|
|
}
|
|
|
//credentialName 证书名称
|
|
|
if ("CertificateName".equals(name)) {
|
|
|
- CredentialInfo.setCredentialName(text);
|
|
|
+ credentialInfo.setCredentialName(text);
|
|
|
}
|
|
|
//issuer 证书发布机构
|
|
|
if ("Authority".equals(name)) {
|
|
|
- CredentialInfo.setIssuer(text);
|
|
|
+ credentialInfo.setIssuer(text);
|
|
|
}
|
|
|
//grade 证书成绩
|
|
|
if ("Score".equals(name)) {
|
|
|
- CredentialInfo.setGrade(text);
|
|
|
+ credentialInfo.setGrade(text);
|
|
|
}
|
|
|
}
|
|
|
- iCredential.save(CredentialInfo);
|
|
|
+ iCredential.save(credentialInfo);
|
|
|
+
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
logger.error("简历-获得证书保存失败!" + e.getMessage());
|
|
@@ -923,13 +955,17 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
ILanguageAbility iLanguageAbility = LanguageAbilityFactory.getLocalInstance(ctx);
|
|
|
LanguageAbilityCollection LanguageAbilityCollection =
|
|
|
iLanguageAbility.getLanguageAbilityCollection("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
- LanguageAbilityInfo LanguageAbilityInfo = LanguageAbilityCollection.isEmpty() ? new LanguageAbilityInfo() : LanguageAbilityCollection.get(0);
|
|
|
- //简历基本信息
|
|
|
- LanguageAbilityInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
+ if (!LanguageAbilityCollection.isEmpty()) {
|
|
|
+ iLanguageAbility.delete("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
+ }
|
|
|
+
|
|
|
//熟练度
|
|
|
Map<String, String> proficiencyMap = InitialValueUtils.getProficiencyMap();
|
|
|
for (int i = 0; i < lang.size(); i++) {
|
|
|
JSONArray array = lang.getJSONArray(i);
|
|
|
+ LanguageAbilityInfo languageAbilityInfo = new LanguageAbilityInfo();
|
|
|
+ //简历基本信息
|
|
|
+ languageAbilityInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
for (int j = 0; j < array.size(); j++) {
|
|
|
JSONObject data = array.getJSONObject(j);
|
|
|
String name = data.getString("name");
|
|
@@ -938,23 +974,24 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
//listeningSpeaking 听说
|
|
|
if ("ListeningSpeakingAbility".equals(name)) {
|
|
|
if (proficiencyMap.containsKey(value)) {
|
|
|
- LanguageAbilityInfo.setListeningSpeaking(ProficiencyEnum.getEnum(proficiencyMap.get(value)));
|
|
|
+ languageAbilityInfo.setListeningSpeaking(ProficiencyEnum.getEnum(proficiencyMap.get(value)));
|
|
|
}
|
|
|
}
|
|
|
//readingWriting 读写
|
|
|
if ("ReadingWritingAbility".equals(name)) {
|
|
|
- LanguageAbilityInfo.setReadingWriting(ProficiencyEnum.getEnum(proficiencyMap.get(value)));
|
|
|
+ languageAbilityInfo.setReadingWriting(ProficiencyEnum.getEnum(proficiencyMap.get(value)));
|
|
|
}
|
|
|
//language 语言
|
|
|
if ("LanguageType".equals(name)) {
|
|
|
- LanguageAbilityInfo.setLanguage(text);
|
|
|
+ languageAbilityInfo.setLanguage(text);
|
|
|
}
|
|
|
//lv 语言等级
|
|
|
if ("LanguageLevel".equals(name)) {
|
|
|
- LanguageAbilityInfo.setLv(text);
|
|
|
+ languageAbilityInfo.setLv(text);
|
|
|
}
|
|
|
}
|
|
|
- iLanguageAbility.save(LanguageAbilityInfo);
|
|
|
+ iLanguageAbility.save(languageAbilityInfo);
|
|
|
+
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
logger.error("简历-语言能力保存失败!" + e.getMessage());
|
|
@@ -972,26 +1009,31 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
IProfessionalSkills iProfessionalSkills = ProfessionalSkillsFactory.getLocalInstance(ctx);
|
|
|
ProfessionalSkillsCollection ProfessionalSkillsCollection =
|
|
|
iProfessionalSkills.getProfessionalSkillsCollection("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
- ProfessionalSkillsInfo ProfessionalSkillsInfo = ProfessionalSkillsCollection.isEmpty() ? new ProfessionalSkillsInfo() : ProfessionalSkillsCollection.get(0);
|
|
|
- //简历基本信息
|
|
|
- ProfessionalSkillsInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
+ if (!ProfessionalSkillsCollection.isEmpty()) {
|
|
|
+ iProfessionalSkills.delete("where resumeBase = '" + resumeBaseRecInfo.getId().toString() + "'");
|
|
|
+ }
|
|
|
for (int i = 0; i < skill.size(); i++) {
|
|
|
JSONArray array = skill.getJSONArray(i);
|
|
|
+ ProfessionalSkillsInfo professionalSkillsInfo = new ProfessionalSkillsInfo();
|
|
|
+ //简历基本信息
|
|
|
+ professionalSkillsInfo.setResumeBase(resumeBaseRecInfo);
|
|
|
for (int j = 0; j < array.size(); j++) {
|
|
|
+
|
|
|
JSONObject data = array.getJSONObject(j);
|
|
|
String name = data.getString("name");
|
|
|
String value = data.getString("value");
|
|
|
String text = data.getString("text");
|
|
|
//skillName 技能名称
|
|
|
if ("SkillName".equals(name)) {
|
|
|
- ProfessionalSkillsInfo.setSkillName(text);
|
|
|
+ professionalSkillsInfo.setSkillName(text);
|
|
|
}
|
|
|
//skillDescription 技能描述
|
|
|
if ("SkillDescription".equals(name)) {
|
|
|
- ProfessionalSkillsInfo.setSkillDescription(text);
|
|
|
+ professionalSkillsInfo.setSkillDescription(text);
|
|
|
}
|
|
|
}
|
|
|
- iProfessionalSkills.save(ProfessionalSkillsInfo);
|
|
|
+ iProfessionalSkills.save(professionalSkillsInfo);
|
|
|
+
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
logger.error("简历-专业技能保存失败!" + e.getMessage());
|