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);
|
log.debug("searching tmt registries: {}", tmtPrdct);
|
||||||
tmtToday = rgsImdg.getCollectionObjectsByPredicate(tmtPrdct);
|
tmtToday = rgsImdg.getCollectionObjectsByPredicate(tmtPrdct);
|
||||||
}
|
}
|
||||||
Collection<Registry> omtsNotToday;
|
Collection<Registry> omtToday;
|
||||||
{
|
{
|
||||||
ImdgPredicate omtPrdct = rgsAnd.apply(
|
ImdgPredicate omtPrdct = rgsAnd.apply(
|
||||||
rgsPb.equals("settlementDate", today), OM_T
|
rgsPb.equals("settlementDate", today), OM_T
|
||||||
);
|
);
|
||||||
log.debug("searching omt registries: {}", omtPrdct);
|
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: {}",
|
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
|
BigDecimal tmtSum = tmtToday
|
||||||
.stream()
|
.stream()
|
||||||
.map(tmt -> safeBD(tmt.getBalance()))
|
.map(tmt -> safeBD(tmt.getBalance()))
|
||||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||||
BigDecimal omtSum = omtsNotToday
|
BigDecimal omtSum = omtToday
|
||||||
.stream()
|
.stream()
|
||||||
.map(omt -> safeBD(omt.getBalance()))
|
.map(omt -> safeBD(omt.getBalance()))
|
||||||
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
.reduce(BigDecimal.ZERO, BigDecimal::add);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue