REQ-3345: 添加限流
This commit is contained in:
parent
4d09ce2ee3
commit
7937ee8b57
@ -71,6 +71,10 @@ public class PersonAccountAttribute {
|
||||
}
|
||||
|
||||
public Long ouIdOrDefault() {
|
||||
return getOuIdOrDefault(ouId);
|
||||
}
|
||||
|
||||
public static Long getOuIdOrDefault(Long ouId) {
|
||||
return ouId == null ? 0L : ouId;
|
||||
}
|
||||
|
||||
|
||||
@ -72,7 +72,7 @@ public class ImAccounts {
|
||||
private static boolean isAccountMatchPerson(PersonAccountAttribute person, AccountRegister account) {
|
||||
return person.getPersonId().equals(account.getAccountId())
|
||||
&& person.getAppType().getCode().equals(account.getAppType())
|
||||
&& Objects.equals(person.getOuId(), account.getOuId());
|
||||
&& Objects.equals(person.ouIdOrDefault(), PersonAccountAttribute.getOuIdOrDefault(account.getOuId()));
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user