session (step 2) registry#capacity fix

This commit is contained in:
ialbert 2023-07-18 18:19:39 +03:00
parent 96c8441307
commit c4416f2034
2 changed files with 2 additions and 2 deletions

View file

@ -183,7 +183,7 @@ public class RegistryDepoBuilder implements IRegistryBuilder {
private String defineCapacityByAccountType(String accountType, Long moneyAccountId) {
String capacityByAccount = null;
if (AccountType.Clrn.equalsByKey(accountType)) {
ClearingAccount clearingAccount = clearingAccountImdg.getSingleObjectByID(moneyAccountId);
ClearingAccount clearingAccount = clearingAccountImdg.getFirstObjectByFieldValues(Map.of("accountId", moneyAccountId));
if (clearingAccount != null) {
capacityByAccount = clearingAccount.getClearingAccountType();
}

View file

@ -182,7 +182,7 @@ public class RegistryFondBuilder implements IRegistryBuilder {
private String defineCapacityByAccountType(String accountType, Long moneyAccountId) {
String capacityByAccount = null;
if (AccountType.Clrn.equalsByKey(accountType)) {
ClearingAccount clearingAccount = clearingAccountImdg.getSingleObjectByID(moneyAccountId);
ClearingAccount clearingAccount = clearingAccountImdg.getFirstObjectByFieldValues(Map.of("accountId", moneyAccountId));
if (clearingAccount != null) {
capacityByAccount = clearingAccount.getClearingAccountType();
}