refactor outbound var name
This commit is contained in:
parent
88c2717a8e
commit
cd0e5a7165
1 changed files with 4 additions and 4 deletions
|
|
@ -96,22 +96,22 @@ public class BalanceChecker {
|
|||
log.debug("searching tmt registries: {}", tmtPrdct);
|
||||
tmtToday = rgsImdg.getCollectionObjectsByPredicate(tmtPrdct);
|
||||
}
|
||||
Collection<Registry> omtsNotToday;
|
||||
Collection<Registry> omtToday;
|
||||
{
|
||||
ImdgPredicate omtPrdct = rgsAnd.apply(
|
||||
rgsPb.equals("settlementDate", today), OM_T
|
||||
);
|
||||
log.debug("searching omt registries: {}", omtPrdct);
|
||||
omtsNotToday = rgsImdg.getCollectionObjectsByPredicate(omtPrdct);
|
||||
omtToday = rgsImdg.getCollectionObjectsByPredicate(omtPrdct);
|
||||
}
|
||||
log.debug("a__f.id={} balance checking; tmt today: {}, omt !today: {}",
|
||||
a__f.getId(), tmtToday.size(), omtsNotToday.size());
|
||||
a__f.getId(), tmtToday.size(), omtToday.size());
|
||||
|
||||
BigDecimal tmtSum = tmtToday
|
||||
.stream()
|
||||
.map(tmt -> safeBD(tmt.getBalance()))
|
||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
BigDecimal omtSum = omtsNotToday
|
||||
BigDecimal omtSum = omtToday
|
||||
.stream()
|
||||
.map(omt -> safeBD(omt.getBalance()))
|
||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue