|
|
@@ -692,21 +692,17 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
//姓名
|
|
|
if ("Name".equals(name)) {
|
|
|
resumeBaseRecInfo.setName(text);
|
|
|
- }
|
|
|
- //参加工作时间
|
|
|
- if ("WorkStartTime".equals(name)) {
|
|
|
+ } else if ("WorkStartTime".equals(name)) {
|
|
|
+ //参加工作时间
|
|
|
resumeBaseRecInfo.setWorkDate(DateTimeUtils.parseDate(text, "yyyy/MM/dd"));
|
|
|
- }
|
|
|
- //参加工作年限 workSeniority
|
|
|
- if ("YearsOfWork".equals(name) && !com.kingdee.util.StringUtils.isEmpty(text)) {
|
|
|
+ } else if ("YearsOfWork".equals(name) && !com.kingdee.util.StringUtils.isEmpty(text)) {
|
|
|
+ //参加工作年限 workSeniority
|
|
|
resumeBaseRecInfo.setWorkSeniority(text);
|
|
|
- }
|
|
|
- //工作年限 YearsOfWork
|
|
|
- if ("YearsOfWork".equals(name) && !com.kingdee.util.StringUtils.isEmpty(text)) {
|
|
|
+ } else if ("YearsOfWork".equals(name) && !com.kingdee.util.StringUtils.isEmpty(text)) {
|
|
|
+ //工作年限 YearsOfWork
|
|
|
resumeBaseRecInfo.setWorkSeniority(text);
|
|
|
- }
|
|
|
- //身份证号码 identityCardNo
|
|
|
- if ("CertificateNumber".equals(name)) {
|
|
|
+ } else if ("CertificateNumber".equals(name)) {
|
|
|
+ //身份证号码 identityCardNo
|
|
|
carno = text;
|
|
|
if ("身份证".equals(carType)) {
|
|
|
resumeBaseRecInfo.setIdentityCardNo(carno);
|
|
|
@@ -714,9 +710,8 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
} else {
|
|
|
resumeBaseRecInfo.setPassportNo(carno);
|
|
|
}
|
|
|
- }
|
|
|
- //证件类型
|
|
|
- if ("CertificateType".equals(name)) {
|
|
|
+ } else if ("CertificateType".equals(name)) {
|
|
|
+ //证件类型
|
|
|
carType = text;
|
|
|
if ("身份证".equals(text)) {
|
|
|
resumeBaseRecInfo.setIdentityCardNo(carno);
|
|
|
@@ -724,171 +719,135 @@ public class RecuritmentFacadeControllerBean extends AbstractRecuritmentFacadeCo
|
|
|
} else {
|
|
|
resumeBaseRecInfo.setPassportNo(carno);
|
|
|
}
|
|
|
- }
|
|
|
- //出生年月 birthday
|
|
|
- if ("Birthday".equals(name)) {
|
|
|
+ } else if ("Birthday".equals(name)) {
|
|
|
+ //出生年月 birthday
|
|
|
resumeBaseRecInfo.setBirthday(DateTimeUtils.parseDate(text, "yyyy/MM/dd"));
|
|
|
- }
|
|
|
- //户口所在地 domicilePlace
|
|
|
- if ("AccountArea".equals(name)) {
|
|
|
+ } else if ("AccountArea".equals(name)) {
|
|
|
+ //户口所在地 domicilePlace
|
|
|
resumeBaseRecInfo.setDomicilePlace(text);
|
|
|
- }
|
|
|
- //QQ QQ
|
|
|
- if ("QQ".equals(name)) {
|
|
|
+ } else if ("QQ".equals(name)) {
|
|
|
+ //QQ QQ
|
|
|
resumeBaseRecInfo.setQQ(text);
|
|
|
- }
|
|
|
- //身高 stature
|
|
|
- if ("Height".equals(name)) {
|
|
|
+ } else if ("Height".equals(name)) {
|
|
|
+ //身高 stature
|
|
|
resumeBaseRecInfo.setStature(text);
|
|
|
- }
|
|
|
- //现居住地 nowResidence
|
|
|
- if ("LivingArea".equals(name)) {
|
|
|
+ } else if ("LivingArea".equals(name)) {
|
|
|
+ //现居住地 nowResidence
|
|
|
resumeBaseRecInfo.setNowResidence(text);
|
|
|
- }
|
|
|
- //手机号 mobilePhone
|
|
|
- if ("Mobile".equals(name)) {
|
|
|
+ } else if ("Mobile".equals(name)) {
|
|
|
+ //手机号 mobilePhone
|
|
|
resumeBaseRecInfo.setMobilePhone(text);
|
|
|
- }
|
|
|
- //家庭电话 fixedPhone
|
|
|
- if ("Telephone".equals(name)) {
|
|
|
+ } else if ("Telephone".equals(name)) {
|
|
|
+ //家庭电话 fixedPhone
|
|
|
resumeBaseRecInfo.setFixedPhone(text);
|
|
|
- }
|
|
|
- //邮件 email
|
|
|
- if ("Email".equals(name)) {
|
|
|
+ } else if ("Email".equals(name)) {
|
|
|
+ //邮件 email
|
|
|
resumeBaseRecInfo.setEmail(text);
|
|
|
- }
|
|
|
- //目前年薪 annualPay
|
|
|
- if ("Salary".equals(name)) {
|
|
|
+ } else if ("Salary".equals(name)) {
|
|
|
+ //目前年薪 annualPay
|
|
|
resumeBaseRecInfo.setAnnualPay(text);
|
|
|
- }
|
|
|
- //目前工作状态 currentWorkingStatus
|
|
|
- if ("JobHunting".equals(name)) {
|
|
|
+ } else if ("JobHunting".equals(name)) {
|
|
|
+ //目前工作状态 currentWorkingStatus
|
|
|
resumeBaseRecInfo.setCurrentWorkingStatus(CurrentWorkingStatusEnum.getEnum(Integer.parseInt(value) - 1));
|
|
|
- }
|
|
|
- //期望年薪 expectantPay
|
|
|
- if ("ExpectSalary".equals(name)) {
|
|
|
+ } else if ("ExpectSalary".equals(name)) {
|
|
|
+ //期望年薪 expectantPay
|
|
|
resumeBaseRecInfo.setExpectantPay(Integer.parseInt(text));
|
|
|
- }
|
|
|
- //职业目标 careerGoal
|
|
|
- if ("CareerGoals".equals(name)) {
|
|
|
+ } else if ("CareerGoals".equals(name)) {
|
|
|
+ //职业目标 careerGoal
|
|
|
resumeBaseRecInfo.setCareerGoal(text);
|
|
|
- }
|
|
|
- //自我评价 selfEvaluation
|
|
|
- if ("Evaluation".equals(name)) {
|
|
|
+ } else if ("Evaluation".equals(name)) {
|
|
|
+ //自我评价 selfEvaluation
|
|
|
resumeBaseRecInfo.setSelfEvaluation(text);
|
|
|
- }
|
|
|
- //国籍 national
|
|
|
- if ("Nationality".equals(name)) {
|
|
|
+ } else if ("Nationality".equals(name)) {
|
|
|
+ //国籍 national
|
|
|
NationalityCollection nationalityCollection = iNationality.getNationalityCollection("where name like '%" + text + "%'");
|
|
|
if (nationalityCollection.size() > 0) {
|
|
|
resumeBaseRecInfo.setNational(nationalityCollection.get(0));
|
|
|
}
|
|
|
- }
|
|
|
- //籍贯 nativePlace
|
|
|
- if ("NativeArea".equals(name)) {
|
|
|
+ } else if ("NativeArea".equals(name)) {
|
|
|
+ //籍贯 nativePlace
|
|
|
resumeBaseRecInfo.setNativePlace(text);
|
|
|
- }
|
|
|
- //年龄 age
|
|
|
- if (resumeBaseRecInfo.getBirthday() != null) {
|
|
|
+ } else if (resumeBaseRecInfo.getBirthday() != null) {
|
|
|
+ //年龄 age
|
|
|
Long yyyy = com.kingdee.util.DateTimeUtils.dateDiff("yyyy", resumeBaseRecInfo.getBirthday(), new Date());
|
|
|
resumeBaseRecInfo.setAge(yyyy.intValue());
|
|
|
- }
|
|
|
- //最高学历 hDegree
|
|
|
- if ("EducationLevel".equals(name)) {
|
|
|
+ } else if ("EducationLevel".equals(name)) {
|
|
|
+ //最高学历 hDegree
|
|
|
DiplomaCollection diplomaCollection = iDiploma.getDiplomaCollection("where beisenVal = '" + value + "'");
|
|
|
if (!diplomaCollection.isEmpty()) {
|
|
|
resumeBaseRecInfo.setHDegree(diplomaCollection.get(0));
|
|
|
}
|
|
|
- }
|
|
|
- //政治面貌 politicalFace
|
|
|
- if ("Polity".equals(name)) {
|
|
|
+ } else if ("Polity".equals(name)) {
|
|
|
+ //政治面貌 politicalFace
|
|
|
PoliticalFaceCollection politicalFaceCollection = iPoliticalFace.getPoliticalFaceCollection("where beisenVal = '" + value + "'");
|
|
|
if (!politicalFaceCollection.isEmpty()) {
|
|
|
resumeBaseRecInfo.setPoliticalFace(politicalFaceCollection.get(0));
|
|
|
}
|
|
|
- }
|
|
|
- //婚姻状况 wed 北森已停用字段
|
|
|
- if (config.get("WedState").equals(name)) {
|
|
|
+ } else if (config.get("WedState").equals(name)) {
|
|
|
+ //婚姻状况 wed 北森已停用字段
|
|
|
WedCollection wedCollection = iWed.getWedCollection("where beisenVal = '" + value + "'");
|
|
|
if (!wedCollection.isEmpty()) {
|
|
|
resumeBaseRecInfo.setWed(wedCollection.get(0));
|
|
|
}
|
|
|
- }
|
|
|
- //民族 folk
|
|
|
- if ("Nation".equals(name)) {
|
|
|
+ } else if ("Nation".equals(name)) {
|
|
|
+ //民族 folk
|
|
|
FolkCollection folkCollection = iFolk.getFolkCollection("where beisenVal = '" + value + "'");
|
|
|
if (!folkCollection.isEmpty()) {
|
|
|
resumeBaseRecInfo.setFolk(folkCollection.get(0));
|
|
|
}
|
|
|
- }
|
|
|
- //毕业学校 school
|
|
|
- if ("LastSchool".equals(name)) {
|
|
|
+ } else if ("LastSchool".equals(name)) {
|
|
|
+ //毕业学校 school
|
|
|
if (com.kingdee.util.StringUtils.isEmpty(text)) {
|
|
|
throw new BOSException("毕业学校不能为空!");
|
|
|
}
|
|
|
resumeBaseRecInfo.setName(text);
|
|
|
- }
|
|
|
- //血型 bloodType
|
|
|
- if ("BloodType".equals(name)) {
|
|
|
+ } else if ("BloodType".equals(name)) {
|
|
|
+ //血型 bloodType
|
|
|
String hDegree = bloodTypeMap.getOrDefault(value, "90");
|
|
|
resumeBaseRecInfo.setBloodType(BloodType.getEnum(hDegree));
|
|
|
- }
|
|
|
- //紧急联系人 emergencyContact
|
|
|
- if ("EmergencyContact".equals(name)) {
|
|
|
+ } else if ("EmergencyContact".equals(name)) {
|
|
|
+ //紧急联系人 emergencyContact
|
|
|
resumeBaseRecInfo.setEmergencyContact(text);
|
|
|
- }
|
|
|
- //紧急联系人电话 emergencyContactPhone
|
|
|
- if ("EmergencyPhone".equals(name)) {
|
|
|
+ } else if ("EmergencyPhone".equals(name)) {
|
|
|
+ //紧急联系人电话 emergencyContactPhone
|
|
|
resumeBaseRecInfo.setEmergencyContactPhone(text);
|
|
|
- }
|
|
|
- //期望月薪 expectantPayStr
|
|
|
- if ("ExpectSalary".equals(name)) {
|
|
|
+ } else if ("ExpectSalary".equals(name)) {
|
|
|
+ //期望月薪 expectantPayStr
|
|
|
resumeBaseRecInfo.setExpectantPayStr(text);
|
|
|
- }
|
|
|
- //最近工作单位 lastCompany
|
|
|
- if ("LastCompany".equals(name)) {
|
|
|
+ } else if ("LastCompany".equals(name)) {
|
|
|
+ //最近工作单位 lastCompany
|
|
|
resumeBaseRecInfo.setLastCompany(text);
|
|
|
- }
|
|
|
- //最近工作行业 lastIndustry
|
|
|
- if ("LastIndustry".equals(name)) {
|
|
|
+ } else if ("LastIndustry".equals(name)) {
|
|
|
+ //最近工作行业 lastIndustry
|
|
|
resumeBaseRecInfo.setLastIndustry(text);
|
|
|
- }
|
|
|
- //专业 major
|
|
|
- if ("LastDiscipline".equals(name)) {
|
|
|
+ } else if ("LastDiscipline".equals(name)) {
|
|
|
+ //专业 major
|
|
|
resumeBaseRecInfo.setMajor(text);
|
|
|
- }
|
|
|
- //性别 gender
|
|
|
- if ("Gender".equals(name)) {
|
|
|
+ } else if ("Gender".equals(name)) {
|
|
|
+ //性别 gender
|
|
|
if ("1".equals(value) || "0".equals(value)) {
|
|
|
resumeBaseRecInfo.setGender(Genders.getEnum(Integer.parseInt(value) + 1));
|
|
|
}
|
|
|
- }
|
|
|
- //更新简历时间 updateResumeDate
|
|
|
- if ("ResumeUpdateTime".equals(name)) {
|
|
|
+ } else if ("ResumeUpdateTime".equals(name)) {
|
|
|
+ //更新简历时间 updateResumeDate
|
|
|
resumeBaseRecInfo.setUpdateResumeDate(DateTimeUtils.parseDate(text, "yyyy/MM/dd"));
|
|
|
- }
|
|
|
- //签发机关 idCardIssueOrg
|
|
|
- if ("CertificateGrantUnit".equals(name)) {
|
|
|
+ } else if ("CertificateGrantUnit".equals(name)) {
|
|
|
+ //签发机关 idCardIssueOrg
|
|
|
resumeBaseRecInfo.setIdentityCardNo(text);
|
|
|
- }
|
|
|
- //证件有效期-开始时间 idCardBeginDate
|
|
|
- if ("CertificateValidityDate".equals(name)) {
|
|
|
+ } else if ("CertificateValidityDate".equals(name)) {
|
|
|
+ //证件有效期-开始时间 idCardBeginDate
|
|
|
resumeBaseRecInfo.setIdCardBeginDate(DateTimeUtils.parseDate(text, "yyyy/MM/dd"));
|
|
|
- }
|
|
|
- //证件有效期-结束时间 idCardEndDate
|
|
|
- if ("CertificateValidityOverDate".equals(name)) {
|
|
|
+ } else if ("CertificateValidityOverDate".equals(name)) {
|
|
|
+ //证件有效期-结束时间 idCardEndDate
|
|
|
resumeBaseRecInfo.setIdCardEndDate(DateTimeUtils.parseDate(text, "yyyy/MM/dd"));
|
|
|
- }
|
|
|
- //到岗时间 arrivalTime
|
|
|
- if ("AvailableDate".equals(name)) {
|
|
|
+ } else if ("AvailableDate".equals(name)) {
|
|
|
+ //到岗时间 arrivalTime
|
|
|
resumeBaseRecInfo.setArrivalTime(DateTimeUtils.parseDate(text, "yyyy/MM/dd"));
|
|
|
- }
|
|
|
- //英文名 EnglishName
|
|
|
- if ("NameEn".equals(name)) {
|
|
|
+ } else if ("NameEn".equals(name)) {
|
|
|
+ //英文名 EnglishName
|
|
|
resumeBaseRecInfo.setEnglishName(text);
|
|
|
- }
|
|
|
- //户籍地址 domicileAddress
|
|
|
- if ("Address".equals(name)) {
|
|
|
+ } else if ("Address".equals(name)) {
|
|
|
+ //户籍地址 domicileAddress
|
|
|
resumeBaseRecInfo.setDomicileAddress(text);
|
|
|
}
|
|
|
}
|