Showing
1 changed file
with
1 additions
and
1 deletions
... | ... | @@ -89,7 +89,7 @@ public class YtAlarmContactServiceImpl extends AbstractBaseService<AlarmContactM |
89 | 89 | if (Count > 0) { |
90 | 90 | throw new YtDataValidationException("department for this name is exited"); |
91 | 91 | } |
92 | - if (checkPhoneEmail(tenantId,alarmContactDTO.getPhone(), alarmContactDTO.getEmail()).size() > 1) { | |
92 | + if (checkPhoneEmail(tenantId,alarmContactDTO.getPhone(), alarmContactDTO.getEmail()).size() > 0) { | |
93 | 93 | throw new YtDataValidationException(ErrorMessage.PHONE_OR_EMAIL_HAS_REGISTER.getMessage()); |
94 | 94 | } |
95 | 95 | alarmContactDTO.setTenantId(tenantId); | ... | ... |