etreschenkov 2026-06-19 13:01:47 +03:00
parent 4e5e2a35b4
commit 62b3b419f1

View file

@ -126,7 +126,7 @@ public enum GatewayEksClientCodeValidationRule implements IValidationRule<ImdgVa
Imdg<TradingClearingRegistry> tradingClearingRegistryImdg = context.obtainMap(IMDGDistributedNames.Map_TradingClearingRegistry, TradingClearingRegistry.class);
ImdgPredicateBuilder predicateBuilder = tradingClearingRegistryImdg.predicateBuilder();
Collection<Long> tkrIds = tradingClearingRegistryImdg.getCollectionIdsByPredicate(
predicateBuilder.equals("depoAccountId", depoAccount.get().getId())
predicateBuilder.equals("depoAccountId", depoAccount.get().getAccountId())
);
if (tkrIds != null && !tkrIds.isEmpty()) {
return of(AccountError.AccountForTradingClearingRegistryAlreadyUsed, depoAccount.get().getId());