This commit is contained in:
parent
76a8600f2b
commit
abc2076fbd
1 changed files with 4 additions and 4 deletions
|
|
@ -86,7 +86,7 @@ public enum GatewayUpdateEksClientCodeValidationRule implements IValidationRule<
|
||||||
);
|
);
|
||||||
|
|
||||||
if (accountSymbols == null) {
|
if (accountSymbols == null) {
|
||||||
return of(AccountError.AccountNotFound, "depo_account");
|
return of(AccountError.AccountNotFound, depoAccountVal);
|
||||||
}
|
}
|
||||||
Company company = context.getStoredObject(ClientCodeStoreObjects.COMPANY);
|
Company company = context.getStoredObject(ClientCodeStoreObjects.COMPANY);
|
||||||
Imdg<DepoAccount> imdg = context.obtainMap(IMDGDistributedNames.Map_DepoAccount, DepoAccount.class);
|
Imdg<DepoAccount> imdg = context.obtainMap(IMDGDistributedNames.Map_DepoAccount, DepoAccount.class);
|
||||||
|
|
@ -98,10 +98,10 @@ public enum GatewayUpdateEksClientCodeValidationRule implements IValidationRule<
|
||||||
);
|
);
|
||||||
if (depoAccount == null) {
|
if (depoAccount == null) {
|
||||||
context.storeObject(ClientCodeStoreObjects.DEPO_ACCOUNT, Optional.empty());
|
context.storeObject(ClientCodeStoreObjects.DEPO_ACCOUNT, Optional.empty());
|
||||||
return of(AccountError.AccountNotFound, "depo_account");
|
return of(AccountError.AccountNotFound, depoAccountVal);
|
||||||
}
|
}
|
||||||
if (!depoAccount.getAccountId().equals(tkr.getDepoAccountId())) {
|
if (!depoAccount.getAccountId().equals(tkr.getDepoAccountId())) {
|
||||||
return of(AccountError.DepoAccountChangeNotAllowed, depoAccount.getAccountId());
|
return of(AccountError.DepoAccountChangeNotAllowed, tkr.getCode());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return empty();
|
return empty();
|
||||||
|
|
@ -248,7 +248,7 @@ public enum GatewayUpdateEksClientCodeValidationRule implements IValidationRule<
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
if (account == null) {
|
if (account == null) {
|
||||||
return of(AccountError.AccountNotFound, request.getAccount());
|
return of(AccountError.AccountNotFound, request.getEks_account());
|
||||||
}
|
}
|
||||||
Collection<Long> tkrListByAccount = tkrList.getCollectionIdsByPredicate(
|
Collection<Long> tkrListByAccount = tkrList.getCollectionIdsByPredicate(
|
||||||
predicateBuilder.and(
|
predicateBuilder.and(
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue