parent
dab63ad8be
commit
0db6f75823
1 changed files with 2 additions and 4 deletions
|
|
@ -59,10 +59,8 @@ public class MoneyPaymentInstructionRegisterService extends QueueConsumer implem
|
||||||
Collection<PaymentInstruction> paymentInstructionBySessionId =
|
Collection<PaymentInstruction> paymentInstructionBySessionId =
|
||||||
paymentInstructionMap.getCollectionObjectsByFieldValues(fieldValuesSessionId);
|
paymentInstructionMap.getCollectionObjectsByFieldValues(fieldValuesSessionId);
|
||||||
for (PaymentInstruction paymentInstruction : paymentInstructionBySessionId) {
|
for (PaymentInstruction paymentInstruction : paymentInstructionBySessionId) {
|
||||||
MoneyPaymentInstructionRegister moneyPaymentInstructionRegister = moneyPaymentInstructionRegisterMap.getSingleObjectByFieldValues(Map.of(
|
Map<String, ? extends Comparable<?>> fieldValuesCompanyIdSessionId = getFieldValuesOrThrowException(Map.of("companyId", paymentInstruction.getSenderId(), "sessionId", paymentInstruction.getSessionId()));
|
||||||
"companyId", paymentInstruction.getSenderId(),
|
MoneyPaymentInstructionRegister moneyPaymentInstructionRegister = moneyPaymentInstructionRegisterMap.getSingleObjectByFieldValues(fieldValuesCompanyIdSessionId);
|
||||||
"sessionId", paymentInstruction.getSessionId())
|
|
||||||
);
|
|
||||||
if (moneyPaymentInstructionRegister == null) {
|
if (moneyPaymentInstructionRegister == null) {
|
||||||
insertMoneyPaymentInstructionRegister(paymentInstruction);
|
insertMoneyPaymentInstructionRegister(paymentInstruction);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue