http://jira.mfd.msk:8088/browse/CLS-596 fix after review
This commit is contained in:
parent
8e948bc27a
commit
5639f9ff8b
4 changed files with 9 additions and 12 deletions
|
|
@ -124,24 +124,24 @@ public class KSRepCashNettoReportBuilder extends CSVReportBuilder<SessionIdParam
|
|||
sourceTkr = next.getTradingClearingRegistry();
|
||||
}
|
||||
for (Registry currRegistry : cmtRegistries) {
|
||||
if (!sourceTradingCode.equals(currRegistry.getTradingCode())) {
|
||||
if (!Objects.equals(sourceTradingCode, currRegistry.getTradingCode())) {
|
||||
invalid = true;
|
||||
log.warn("Invalid CM_T registries set, tradingCode not equals. Registries was skipped");
|
||||
break;
|
||||
}
|
||||
if (!sourceTkr.equals(currRegistry.getTradingClearingRegistry())) {
|
||||
if (!Objects.equals(sourceTkr, currRegistry.getTradingClearingRegistry())) {
|
||||
invalid = true;
|
||||
log.warn("Invalid CM_T registries set, tradingClearingRegistry not equals. Registries was skipped");
|
||||
break;
|
||||
}
|
||||
}
|
||||
for (Registry currRegistry : lmtRegistries) {
|
||||
if (!sourceTradingCode.equals(currRegistry.getTradingCode())) {
|
||||
if (!Objects.equals(sourceTradingCode, currRegistry.getTradingCode())) {
|
||||
invalid = true;
|
||||
log.warn("Invalid LM_T registries set, tradingCode not equals. Registries was skipped");
|
||||
break;
|
||||
}
|
||||
if (!sourceTkr.equals(currRegistry.getTradingClearingRegistry())) {
|
||||
if (!Objects.equals(sourceTkr, currRegistry.getTradingClearingRegistry())) {
|
||||
invalid = true;
|
||||
log.warn("Invalid CM_T registries set, tradingClearingRegistry not equals. Registries was skipped");
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ public class KSRepCashRegisterSumsReportBuilder extends CSVReportBuilder<EmptyPa
|
|||
pairRegistry.getId());
|
||||
}
|
||||
|
||||
String account = "";
|
||||
String account = null;
|
||||
AccountType accountType = IEnumKey.getEnumByKey(AccountType.class, registry.getAccountType());
|
||||
if (accountType == AccountType.Clrn) {
|
||||
account = registry.getAccount();
|
||||
|
|
|
|||
|
|
@ -20,10 +20,7 @@ import ru.spcex.platform.imdg.api.predicate.specific.RegistryCodeSqlBuilder;
|
|||
import java.math.BigDecimal;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
@Component
|
||||
|
|
@ -113,13 +110,13 @@ public class KSRepDepoNettoReportBuilder extends CSVReportBuilder<SessionIdParam
|
|||
if (!cstRegistries.isEmpty()) sourceTradingCode = cstRegistries.iterator().next().getTradingCode();
|
||||
if (!lstRegistries.isEmpty()) sourceTradingCode = lstRegistries.iterator().next().getTradingCode();
|
||||
for (Registry currRegistry : cstRegistries) {
|
||||
if (sourceTradingCode.equals(currRegistry.getTradingCode())) continue;
|
||||
if (Objects.equals(sourceTradingCode, currRegistry.getTradingCode())) continue;
|
||||
invalid = true;
|
||||
log.warn("Invalid CS_T registries set, tradingCode not equals. Registries was skipped");
|
||||
break;
|
||||
}
|
||||
for (Registry currRegistry : lstRegistries) {
|
||||
if (sourceTradingCode.equals(currRegistry.getTradingCode())) continue;
|
||||
if (Objects.equals(sourceTradingCode, currRegistry.getTradingCode())) continue;
|
||||
invalid = true;
|
||||
log.warn("Invalid LS_T registries set, tradingCode not equals. Registries was skipped");
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@ public class KSRepTradesReportBuilder extends CSVReportBuilder<EmptyParams, KSRe
|
|||
|
||||
ksRepTradesReport.setTkr(tkr.getCode());
|
||||
|
||||
String account = "";
|
||||
String account = null;
|
||||
if (tkr.getMoneyAccountId() != null) {
|
||||
Account moneyAccountFromImdg = accountImdg.getSingleObjectByID(tkr.getMoneyAccountId());
|
||||
if (moneyAccountFromImdg != null) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue