|
@@ -87,12 +87,11 @@ public class ContactInformationServiceImpl implements ContactInformationService
|
|
vo.setMsg("联系人信息已经存在,无需新增");
|
|
vo.setMsg("联系人信息已经存在,无需新增");
|
|
return vo;
|
|
return vo;
|
|
}
|
|
}
|
|
- if (oldContactInformationDO == null) {
|
|
|
|
|
|
+ if (contactInformationVO.getId() !=null) {
|
|
|
|
+ contactInformationMapper.updateById(contactInformationDO);
|
|
|
|
+ }else {
|
|
contactInformationDO.setCreateTime(new Date());
|
|
contactInformationDO.setCreateTime(new Date());
|
|
contactInformationMapper.insert(contactInformationDO);
|
|
contactInformationMapper.insert(contactInformationDO);
|
|
- } else {
|
|
|
|
- contactInformationDO.setId(oldContactInformationDO.getId());
|
|
|
|
- contactInformationMapper.updateById(contactInformationDO);
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
return vo;
|
|
return vo;
|