Commit 90f438b8 authored by fangxinjiang's avatar fangxinjiang

附属信息学历新增服务间

parent 002ca6d4
......@@ -267,7 +267,22 @@ public class TEmpEducationServiceImpl extends ServiceImpl<TEmpEducationMapper, T
if (CommonConstants.ZERO_STRING.equals(education.getHighIdentification())){
baseMapper.updateHighIdentification(education.getEmpIdcard());
}
return R.ok(baseMapper.insert(education) > 0);
TEmpEducation exist = baseMapper.selectOne(Wrappers.<TEmpEducation>query().lambda()
.eq(TEmpEducation::getEducationName,education.getEducationName())
.eq(TEmpEducation::getDeleteFlag,CommonConstants.ZERO_STRING)
.eq(TEmpEducation::getEmpIdcard,education.getEducationName())
.last(CommonConstants.LAST_ONE_SQL));
if (Common.isNotNull(exist)){
exist.setHighIdentification(education.getHighIdentification());
exist.setSchool(education.getType());
exist.setMajor(education.getMajor());
exist.setEntryDate(education.getEntryDate());
exist.setGradutionDate(education.getGradutionDate());
baseMapper.updateById(exist);
}else {
baseMapper.insert(education);
}
return R.ok();
}
}
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