This commit is contained in:
parent
723f177c25
commit
53810fd4f1
1 changed files with 26 additions and 10 deletions
|
|
@ -85,8 +85,16 @@ public class ExecutionRegisterService extends QueueConsumer implements Initializ
|
|||
public void executionRegisterNew(BaseRequest<LauncherCommandRequest> userRequest) {
|
||||
LocalDate localDateNow = LocalDate.now();
|
||||
log.debug("ExecutionRegisterNewRequest received");
|
||||
Collection<ExecutionFond> collectionFond = executionFondMap.getCollectionObjectsByFieldValues(Map.of("clearingDate", localDateNow));
|
||||
Collection<ExecutionDeposit> collectionDeposit = executionDepositMap.getCollectionObjectsByFieldValues(Map.of("clearingDate", localDateNow));
|
||||
Collection<ExecutionFond> collectionFond = executionFondMap.getCollectionObjectsByFieldValues(
|
||||
Map.of(
|
||||
"clearingDate", localDateNow,
|
||||
"side", Side.SELL.getKey()
|
||||
));
|
||||
Collection<ExecutionDeposit> collectionDeposit = executionDepositMap.getCollectionObjectsByFieldValues(
|
||||
Map.of(
|
||||
"clearingDate", localDateNow,
|
||||
"side", MoneyFlowSide.SELL.getKey()
|
||||
));
|
||||
log.debug("Found {} ExecutionFond and {} ExecutionDeposit on clearingDate={}",
|
||||
collectionFond.size(), collectionDeposit.size(), localDateNow);
|
||||
preClearMap.preClearMap();
|
||||
|
|
@ -181,12 +189,16 @@ public class ExecutionRegisterService extends QueueConsumer implements Initializ
|
|||
sellerId = common.getCounterPartyId();
|
||||
buyerId = common.getCompanyId();
|
||||
|
||||
if (companySymbolsForCounterPartyId != null) sellerClearingCode = companySymbolsForCounterPartyId.getCompanySymbolValue();
|
||||
if (companySymbolsForCounterPartyId != null)
|
||||
sellerClearingCode = companySymbolsForCounterPartyId.getCompanySymbolValue();
|
||||
sellerTradingClearingRegister = common.getCounterPartyTradingClearingRegistry();
|
||||
if (moneyAccountForCounterPartyTkrId != null) sellerMoneyAccount = moneyAccountForCounterPartyTkrId.getAccount();
|
||||
if (depoAccountForCounterPartyTkrId != null) sellerDepoAccount = depoAccountForCounterPartyTkrId.getAccount();
|
||||
if (moneyAccountForCounterPartyTkrId != null)
|
||||
sellerMoneyAccount = moneyAccountForCounterPartyTkrId.getAccount();
|
||||
if (depoAccountForCounterPartyTkrId != null)
|
||||
sellerDepoAccount = depoAccountForCounterPartyTkrId.getAccount();
|
||||
|
||||
if (companySymbolsForCompanyId != null) buyerClearingCode = companySymbolsForCompanyId.getCompanySymbolValue();
|
||||
if (companySymbolsForCompanyId != null)
|
||||
buyerClearingCode = companySymbolsForCompanyId.getCompanySymbolValue();
|
||||
buyerTradingClearingRegister = common.getPartyTradingClearingRegistry();
|
||||
if (moneyAccountForTkrId != null) buyerMoneyAccount = moneyAccountForTkrId.getAccount();
|
||||
if (depoAccountForTkrId != null) buyerDepoAccount = depoAccountForTkrId.getAccount();
|
||||
|
|
@ -196,15 +208,19 @@ public class ExecutionRegisterService extends QueueConsumer implements Initializ
|
|||
sellerId = common.getCompanyId();
|
||||
buyerId = common.getCounterPartyId();
|
||||
|
||||
if (companySymbolsForCompanyId != null) sellerClearingCode = companySymbolsForCompanyId.getCompanySymbolValue();
|
||||
if (companySymbolsForCompanyId != null)
|
||||
sellerClearingCode = companySymbolsForCompanyId.getCompanySymbolValue();
|
||||
sellerTradingClearingRegister = common.getPartyTradingClearingRegistry();
|
||||
if (moneyAccountForTkrId != null) sellerMoneyAccount = moneyAccountForTkrId.getAccount();
|
||||
if (depoAccountForTkrId != null) sellerDepoAccount = depoAccountForTkrId.getAccount();
|
||||
|
||||
if (companySymbolsForCounterPartyId != null) buyerClearingCode = companySymbolsForCounterPartyId.getCompanySymbolValue();
|
||||
if (companySymbolsForCounterPartyId != null)
|
||||
buyerClearingCode = companySymbolsForCounterPartyId.getCompanySymbolValue();
|
||||
buyerTradingClearingRegister = common.getCounterPartyTradingClearingRegistry();
|
||||
if (moneyAccountForCounterPartyTkrId != null) buyerMoneyAccount = moneyAccountForCounterPartyTkrId.getAccount();
|
||||
if (depoAccountForCounterPartyTkrId != null) buyerDepoAccount = depoAccountForCounterPartyTkrId.getAccount();
|
||||
if (moneyAccountForCounterPartyTkrId != null)
|
||||
buyerMoneyAccount = moneyAccountForCounterPartyTkrId.getAccount();
|
||||
if (depoAccountForCounterPartyTkrId != null)
|
||||
buyerDepoAccount = depoAccountForCounterPartyTkrId.getAccount();
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue