изменения по финальной МКР сессии шаг 5 фикс поиска DM*X
This commit is contained in:
parent
f90365a191
commit
84ccc444b8
1 changed files with 19 additions and 14 deletions
|
|
@ -112,6 +112,9 @@ public class InspectionObligationsDepositReturn implements ISessionStage {
|
||||||
log.debug("groupId={}, OM*T.id={}", entry.getKey(), omtRgs.getId());
|
log.debug("groupId={}, OM*T.id={}", entry.getKey(), omtRgs.getId());
|
||||||
BigDecimal omtBalance = safeBD(omtRgs.getBalance());
|
BigDecimal omtBalance = safeBD(omtRgs.getBalance());
|
||||||
|
|
||||||
|
if (omtRgs.getValueDate() != null
|
||||||
|
&& omtRgs.getSettlementDate() != null
|
||||||
|
&& omtRgs.getValueDate().isBefore(omtRgs.getSettlementDate())) {
|
||||||
Optional<Registry> dmx = searchDmx(omtRgs);
|
Optional<Registry> dmx = searchDmx(omtRgs);
|
||||||
if (dmx.isPresent()) {
|
if (dmx.isPresent()) {
|
||||||
BigDecimal dmxBalance = safeBD(dmx.get().getBalance());
|
BigDecimal dmxBalance = safeBD(dmx.get().getBalance());
|
||||||
|
|
@ -127,6 +130,7 @@ public class InspectionObligationsDepositReturn implements ISessionStage {
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Optional<Registry> amfAssetO = searchAssetByOMT(omtRgs);
|
Optional<Registry> amfAssetO = searchAssetByOMT(omtRgs);
|
||||||
if (amfAssetO.isEmpty()) {
|
if (amfAssetO.isEmpty()) {
|
||||||
|
|
@ -168,7 +172,8 @@ public class InspectionObligationsDepositReturn implements ISessionStage {
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
log.info("OM*T.id={} -> no DM*X/DM*T(INFO/CLRN) registry found. setting MNG status to group", omtRgs.getId());
|
log.info("OM*T.id={} -> no DM*X/DM*T(INFO/CLRN) registry found. setting {} status to group",
|
||||||
|
omtRgs.getId(), registryStatusForDmxCheckFailed());
|
||||||
group.forEach(rgs -> updateStatus(rgs, registryStatusForDmxCheckFailed()));
|
group.forEach(rgs -> updateStatus(rgs, registryStatusForDmxCheckFailed()));
|
||||||
}
|
}
|
||||||
return new StageResult<>(null, true);
|
return new StageResult<>(null, true);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue