|
|
@@ -451,13 +451,17 @@ public class PersonnelServiceImpl extends BaseMybatisDao<PersonnelDossierMapper
|
|
|
m.setWelfareAnnexUrl(i.getAnnexUrl());
|
|
|
m.setWelfareAnnexName(i.getAnnexName());
|
|
|
m.setWelfareRemarks(i.getRemarks());
|
|
|
- PersonnelMid pm=personnelMidMapper.selectByPrimaryKey(i.getPdId());
|
|
|
- if (pm==null||pm.getId()==null) {
|
|
|
- personnelMidMapper.insertSelective(m);
|
|
|
- }else {
|
|
|
- personnelMidMapper.updateByPrimaryKeySelective(m);
|
|
|
-
|
|
|
+ if (m.getInsuranceStartTime()!=null||m.getFundStartTime()!=null||m.getEmployerStartTime()!=null||
|
|
|
+ m.getWelfareAnnexUrl()!=null||m.getWelfareRemarks()!=null) {
|
|
|
+ PersonnelMid pm=personnelMidMapper.selectByPrimaryKey(i.getPdId());
|
|
|
+ if (pm==null||pm.getId()==null) {
|
|
|
+ personnelMidMapper.insertSelective(m);
|
|
|
+ }else {
|
|
|
+ personnelMidMapper.updateByPrimaryKeySelective(m);
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
return 1;
|
|
|
}
|
|
|
}
|