소스 검색

feat:公司邮箱保存失败问题修复

chenjianhua 1 개월 전
부모
커밋
c894e0e1bf
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      service-manage/src/main/java/com/simuwang/manage/service/impl/ContactInformationServiceImpl.java

+ 5 - 0
service-manage/src/main/java/com/simuwang/manage/service/impl/ContactInformationServiceImpl.java

@@ -87,6 +87,11 @@ public class ContactInformationServiceImpl implements ContactInformationService
                 vo.setMsg("联系人信息已经存在,无需新增");
                 return vo;
             }
+            if (oldContactInformationDO != null && contactInformationVO.getId() != null && !contactInformationVO.getId().equals(oldContactInformationDO.getId())) {
+                vo.setData(false);
+                vo.setMsg("联系人信息已经存在,无需新增");
+                return vo;
+            }
             if (contactInformationVO.getId() !=null) {
                 contactInformationMapper.updateById(contactInformationDO);
             }else {