This commit is contained in:
parent
1b0672bba3
commit
f1982ef5da
1 changed files with 5 additions and 5 deletions
|
|
@ -223,11 +223,11 @@ public class TradingClearingRegistryListValidationConfig {
|
||||||
}
|
}
|
||||||
Collection<TradingClearingRegistryList> inOtherLists = tradingClearingRegistryListImdg.getCollectionObjectsByPredicate(query);
|
Collection<TradingClearingRegistryList> inOtherLists = tradingClearingRegistryListImdg.getCollectionObjectsByPredicate(query);
|
||||||
if (!inOtherLists.isEmpty()) {
|
if (!inOtherLists.isEmpty()) {
|
||||||
Collection<String> duplicateAccounts = inOtherLists.stream()
|
// Collection<String> duplicateAccounts = inOtherLists.stream()
|
||||||
.map(tradingClearingRegistryList ->
|
// .map(tradingClearingRegistryList ->
|
||||||
accountImdg.getSingleObjectByID(tradingClearingRegistryList.getAccountId()).getAccount())
|
// accountImdg.getSingleObjectByID(tradingClearingRegistryList.getAccountId()).getAccount())
|
||||||
.collect(Collectors.toSet());
|
// .collect(Collectors.toSet());
|
||||||
return of(AccountError.AccountForTradingClearingRegistryAlreadyUsed, duplicateAccounts, fieldName); // (5023) «Счет %s уже используется»
|
return of(AccountError.AccountForTradingClearingRegistryAlreadyUsed, byIdObject.getAccount(), fieldName); // (5023) «Счет %s уже используется»
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue