This commit is contained in:
parent
a8d3822594
commit
02869b9ddd
1 changed files with 6 additions and 1 deletions
|
|
@ -216,7 +216,12 @@ public class TradingClearingRegistryValidationConfig {
|
||||||
if (existTCR.isEmpty()) {
|
if (existTCR.isEmpty()) {
|
||||||
return empty();
|
return empty();
|
||||||
} else {
|
} else {
|
||||||
return of(AccountError.AccountForTradingClearingRegistryAlreadyUsed, validatedObject.getDepoAccountId());
|
String depoAccountValue = Optional
|
||||||
|
.ofNullable(depoAccount.getAccountId())
|
||||||
|
.map(accountImdg::getSingleObjectByID)
|
||||||
|
.map(Account::getAccount)
|
||||||
|
.orElse("null");
|
||||||
|
return of(AccountError.AccountForTradingClearingRegistryAlreadyUsed, depoAccountValue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue