fix creation registry by sdf01
This commit is contained in:
parent
1710d25188
commit
c5d74bd318
2 changed files with 5 additions and 6 deletions
|
|
@ -264,7 +264,8 @@ public class Sdf01Executor extends AbstractExecutor<SDf01> {
|
|||
rgs.setRegistryUnit(RegistryUnit.T.getKey());
|
||||
rgs.setRegistryCode(RegistryUtil.clearingCode(rgs));
|
||||
Collection<TradingClearingRegistry> tcrsByAccount = tradingClearingRegistryImdg.getCollectionObjectsByFieldValues(Map.of(
|
||||
"moneyAccountId", statement.getAccountId()
|
||||
"moneyAccountId", statement.getAccountId(),
|
||||
"companyId", company.getId()
|
||||
));
|
||||
if (!tcrsByAccount.isEmpty()) {
|
||||
TradingClearingRegistry tcr = tcrsByAccount.iterator().next();
|
||||
|
|
|
|||
|
|
@ -102,11 +102,9 @@ public class InspectionObligations implements ISessionStage {
|
|||
log.warn("Not found asset by registry.id={}", obligation.getId());
|
||||
isUncovered = true;
|
||||
} else if (obligation.getBalance().compareTo(asset.getBalance()) > 0) {
|
||||
if (obligation.getBalance().compareTo(asset.getBalance()) > 0) {
|
||||
log.warn("groupId: {}: {}", obligation.getGroupId(),
|
||||
msgResolver.resolve(new EnumMessage(ClearingError.InsecurityObligation, obligation.getCompanyId())));
|
||||
isUncovered = true;
|
||||
}
|
||||
log.warn("groupId: {}: {}", obligation.getGroupId(),
|
||||
msgResolver.resolve(new EnumMessage(ClearingError.InsecurityObligation, obligation.getCompanyId())));
|
||||
isUncovered = true;
|
||||
}
|
||||
checkResults.add(new CheckResult(obligation, isUncovered));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue