Commit 1169719f authored by hongguangwu's avatar hongguangwu

派遣/外包+大专及以上=是 才根据学历(本科、大专这些)去更新 或者新建一条学历信息

parent 03546ea1
......@@ -1504,17 +1504,24 @@ public class TEmployeeInfoServiceImpl extends ServiceImpl<TEmployeeInfoMapper, T
// 更新学历-核心
private void doUpdateEducationCore(TEmpEducation education, TEmployeeInfo employeeInfo) {
education.setEmpId(employeeInfo.getId());
education.setEmpName(employeeInfo.getEmpName());
education.setEmpCode(employeeInfo.getEmpCode());
education.setEmpIdcard(employeeInfo.getEmpIdcard());
education.setEducationName(employeeInfo.getHignEducation());
education.setHighIdentification(CommonConstants.ZERO_STRING);
education.setSchool(employeeInfo.getSchool());
education.setMajor(employeeInfo.getMajor());
education.setEntryDate(LocalDateTimeUtils.convertLDToDate(employeeInfo.getAdmissionDate()));
education.setGradutionDate(LocalDateTimeUtils.convertLDToDate(employeeInfo.getGradutionDate()));
tEmpEducationService.insertEducationOfEmp(education);
// 派遣/外包+大专及以上=是 才根据学历(本科、大专这些)去更新 或者新建一条学历信息
if (Common.isNotNull(employeeInfo.getEmpNatrue())
&& (CommonConstants.ZERO_STRING.equals(employeeInfo.getEmpNatrue())
|| CommonConstants.ONE_STRING.equals(employeeInfo.getEmpNatrue()))
&& Common.isNotNull(employeeInfo.getIsCollege())
&& employeeInfo.getIsCollege() == CommonConstants.ONE_INT) {
education.setEmpId(employeeInfo.getId());
education.setEmpName(employeeInfo.getEmpName());
education.setEmpCode(employeeInfo.getEmpCode());
education.setEmpIdcard(employeeInfo.getEmpIdcard());
education.setEducationName(employeeInfo.getHignEducation());
education.setHighIdentification(CommonConstants.ZERO_STRING);
education.setSchool(employeeInfo.getSchool());
education.setMajor(employeeInfo.getMajor());
education.setEntryDate(LocalDateTimeUtils.convertLDToDate(employeeInfo.getAdmissionDate()));
education.setGradutionDate(LocalDateTimeUtils.convertLDToDate(employeeInfo.getGradutionDate()));
tEmpEducationService.insertEducationOfEmp(education);
}
}
/**
......
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