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);
|
||||
if (!inOtherLists.isEmpty()) {
|
||||
Collection<String> duplicateAccounts = inOtherLists.stream()
|
||||
.map(tradingClearingRegistryList ->
|
||||
accountImdg.getSingleObjectByID(tradingClearingRegistryList.getAccountId()).getAccount())
|
||||
.collect(Collectors.toSet());
|
||||
return of(AccountError.AccountForTradingClearingRegistryAlreadyUsed, duplicateAccounts, fieldName); // (5023) «Счет %s уже используется»
|
||||
// Collection<String> duplicateAccounts = inOtherLists.stream()
|
||||
// .map(tradingClearingRegistryList ->
|
||||
// accountImdg.getSingleObjectByID(tradingClearingRegistryList.getAccountId()).getAccount())
|
||||
// .collect(Collectors.toSet());
|
||||
return of(AccountError.AccountForTradingClearingRegistryAlreadyUsed, byIdObject.getAccount(), fieldName); // (5023) «Счет %s уже используется»
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue