registry-service http://jira.mfd.msk:8088/browse/CLS-280
This commit is contained in:
parent
e7ac9a8784
commit
39b1b25c80
3 changed files with 8 additions and 5 deletions
|
|
@ -75,8 +75,9 @@ public class DepoPaymentInstructionRegisterService extends QueueConsumer impleme
|
||||||
public void depoPaymentInstructionRegisterNew(BaseRequest<LauncherCommandRequest> userRequest) {
|
public void depoPaymentInstructionRegisterNew(BaseRequest<LauncherCommandRequest> userRequest) {
|
||||||
log.debug("LauncherCommandRequest received from {}", createRegistry_GORR.topic());
|
log.debug("LauncherCommandRequest received from {}", createRegistry_GORR.topic());
|
||||||
|
|
||||||
Map<String, String> piQuery = Map.of("transactionStatus", TransactionStatus.sent.getKey());
|
String piQuery = "transactionStatus='" + TransactionStatus.sent.getKey() + "' OR transactionStatus = '" +
|
||||||
Collection<PaymentInstruction> paymentInstructions = paymentInstructionMap.getCollectionObjectsByFieldValues(piQuery);
|
TransactionStatus.ok.getKey() + "' OR transactionStatus = '" + TransactionStatus.ok.getKey() + "'";
|
||||||
|
Collection<PaymentInstruction> paymentInstructions = paymentInstructionMap.getCollectionObjectsBySQL(piQuery);
|
||||||
log.debug("Selected {} PaymentInstruction by query \"{}\", do filter by account...",
|
log.debug("Selected {} PaymentInstruction by query \"{}\", do filter by account...",
|
||||||
paymentInstructions.size(), piQuery);
|
paymentInstructions.size(), piQuery);
|
||||||
Collection<PaymentInstruction> depoPaymentInstructions = new ArrayList<>();
|
Collection<PaymentInstruction> depoPaymentInstructions = new ArrayList<>();
|
||||||
|
|
|
||||||
|
|
@ -71,8 +71,9 @@ public class MoneyPaymentInstructionRegisterService extends QueueConsumer implem
|
||||||
public void moneyPaymentInstructionRegisterNew(BaseRequest<LauncherCommandRequest> userRequest) {
|
public void moneyPaymentInstructionRegisterNew(BaseRequest<LauncherCommandRequest> userRequest) {
|
||||||
log.debug("LauncherCommandRequest received from {}", TOPIC_NAME);
|
log.debug("LauncherCommandRequest received from {}", TOPIC_NAME);
|
||||||
|
|
||||||
Map<String, String> piQuery = Map.of("transactionStatus", TransactionStatus.sent.getKey());
|
String piQuery = "transactionStatus='" + TransactionStatus.sent.getKey() + "' OR transactionStatus = '" +
|
||||||
Collection<PaymentInstruction> paymentInstructions = paymentInstructionMap.getCollectionObjectsByFieldValues(piQuery);
|
TransactionStatus.ok.getKey() + "' OR transactionStatus = '" + TransactionStatus.ok.getKey() + "'";
|
||||||
|
Collection<PaymentInstruction> paymentInstructions = paymentInstructionMap.getCollectionObjectsBySQL(piQuery);
|
||||||
log.debug("Selected {} PaymentInstruction by query \"{}\", do filter by account...",
|
log.debug("Selected {} PaymentInstruction by query \"{}\", do filter by account...",
|
||||||
paymentInstructions.size(), piQuery);
|
paymentInstructions.size(), piQuery);
|
||||||
Collection<PaymentInstruction> moneyPaymentInstructions = new ArrayList<>();
|
Collection<PaymentInstruction> moneyPaymentInstructions = new ArrayList<>();
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,7 @@ class DepoPaymentInstructionRegisterServiceTest {
|
||||||
// initialing objects for imdg repos
|
// initialing objects for imdg repos
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Order(1)
|
@Order(1)
|
||||||
void executionRegisterNewForClearingDate() {
|
void executionRegisterNewForClearingDate() {
|
||||||
|
|
@ -134,7 +135,7 @@ class DepoPaymentInstructionRegisterServiceTest {
|
||||||
|
|
||||||
//take all values is procceed imdg
|
//take all values is procceed imdg
|
||||||
Collection<DepoPaymentInstructionRegister> allValues = depoPaymentInstructionRegisterMap.getAllValues();
|
Collection<DepoPaymentInstructionRegister> allValues = depoPaymentInstructionRegisterMap.getAllValues();
|
||||||
DepoPaymentInstructionRegister depoPaymentInstructionRegister = allValues.iterator().next();
|
DepoPaymentInstructionRegister depoPaymentInstructionRegister = allValues.iterator().next();
|
||||||
assertEquals(SESSION_ID, depoPaymentInstructionRegister.getSessionId());
|
assertEquals(SESSION_ID, depoPaymentInstructionRegister.getSessionId());
|
||||||
assertEquals(TRADING_CLEARING_REGISTRY_COMPANY_ID, depoPaymentInstructionRegister.getCompanyId());
|
assertEquals(TRADING_CLEARING_REGISTRY_COMPANY_ID, depoPaymentInstructionRegister.getCompanyId());
|
||||||
assertEquals(TRADING_CLEARING_REGISTRY_TYPE, depoPaymentInstructionRegister.getTradingClearingRegistryType());
|
assertEquals(TRADING_CLEARING_REGISTRY_TYPE, depoPaymentInstructionRegister.getTradingClearingRegistryType());
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue