---
fix up
This commit is contained in:
aalehin 2023-07-25 16:28:30 +03:00
parent 39ccef91a5
commit 39e1d9dd65

View file

@ -113,7 +113,8 @@ public class ExecutionRegisterService extends QueueConsumer implements Initializ
String sellerTradingClearingRegister = null;
String sellerMoneyAccount = null;
String sellerDepoAccount = null;
Long buyerId = common.getCompanyId();
Long buyerId = common.getSide().equalsIgnoreCase("BUY") ? common.getCompanyId() : common.getCounterPartyId();
Long sellerId = common.getSide().equalsIgnoreCase("BUY") ? common.getCounterPartyId() : common.getCompanyId();
String buyerClearingCode = null;
String buyerTradingClearingRegister = null;
String buyerMoneyAccount = null;
@ -180,7 +181,7 @@ public class ExecutionRegisterService extends QueueConsumer implements Initializ
executionRegister.setExchangeExecutionId(common.getExchangeExecutionId());
executionRegister.setExchangeExecutionTime(common.getExchangeExecutionTime());
executionRegister.setSecurityId(common.getSecurityId());
executionRegister.setSellerId(common.getCompanyId());
executionRegister.setSellerId(sellerId);
executionRegister.setSellerClearingCode(sellerClearingCode);
executionRegister.setSellerTradingClearingRegister(sellerTradingClearingRegister);
executionRegister.setSellerMoneyAccount(sellerMoneyAccount);