From 0db6f758233dca9479892a5f4a5261729df6d50c Mon Sep 17 00:00:00 2001 From: aalehin Date: Thu, 1 Jun 2023 14:24:34 +0300 Subject: [PATCH] http://jira.mfd.msk:8088/browse/CLS-280 --- fix up --- .../service/MoneyPaymentInstructionRegisterService.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/clearing-parent/registry-service/src/main/java/ru/spcex/clearing/registry/service/MoneyPaymentInstructionRegisterService.java b/clearing-parent/registry-service/src/main/java/ru/spcex/clearing/registry/service/MoneyPaymentInstructionRegisterService.java index e1113ab5d..6b705b6da 100644 --- a/clearing-parent/registry-service/src/main/java/ru/spcex/clearing/registry/service/MoneyPaymentInstructionRegisterService.java +++ b/clearing-parent/registry-service/src/main/java/ru/spcex/clearing/registry/service/MoneyPaymentInstructionRegisterService.java @@ -59,10 +59,8 @@ public class MoneyPaymentInstructionRegisterService extends QueueConsumer implem Collection paymentInstructionBySessionId = paymentInstructionMap.getCollectionObjectsByFieldValues(fieldValuesSessionId); for (PaymentInstruction paymentInstruction : paymentInstructionBySessionId) { - MoneyPaymentInstructionRegister moneyPaymentInstructionRegister = moneyPaymentInstructionRegisterMap.getSingleObjectByFieldValues(Map.of( - "companyId", paymentInstruction.getSenderId(), - "sessionId", paymentInstruction.getSessionId()) - ); + Map> fieldValuesCompanyIdSessionId = getFieldValuesOrThrowException(Map.of("companyId", paymentInstruction.getSenderId(), "sessionId", paymentInstruction.getSessionId())); + MoneyPaymentInstructionRegister moneyPaymentInstructionRegister = moneyPaymentInstructionRegisterMap.getSingleObjectByFieldValues(fieldValuesCompanyIdSessionId); if (moneyPaymentInstructionRegister == null) { insertMoneyPaymentInstructionRegister(paymentInstruction); }