修改ROA计算逻辑
This commit is contained in:
parent
7f11dc61d5
commit
58ce9376cd
@ -161,6 +161,7 @@ public class ConditionHelper {
|
||||
BigDecimal costMoney = BigDecimal.ZERO;
|
||||
BigDecimal CostInterestRate = new BigDecimal (productRevenues.get( "CostInterestRate" ).get( "CostInterestRate" ) ).divide( percentage ) ;//产品中的成本利率
|
||||
for (Map<String, String> map : rentPlanData) {
|
||||
//surplus:当期本金+剩余本金 。 cautionMoney :保证金
|
||||
BigDecimal surplus = new BigDecimal(map.get("corpus") ).add(new BigDecimal(map.get("ALL_REMAIN_CORPUS")));
|
||||
if(surplus.compareTo(cautionMoney)>0){
|
||||
costMoney = costMoney.add( surplus.subtract(cautionMoney).multiply( CostInterestRate).divide( new BigDecimal("12"), 2 , 4 ) );
|
||||
@ -168,7 +169,7 @@ public class ConditionHelper {
|
||||
}
|
||||
System.out.println(costMoney);
|
||||
// 成本
|
||||
BigDecimal cost = costMoney.subtract( new BigDecimal( cb.getCautionMoney() ).multiply( new BigDecimal( leaseTerm ) ).multiply(CostInterestRate) ).divide( rentRate, 2, 4 );
|
||||
BigDecimal cost = costMoney.divide( rentRate, 2, 4 );
|
||||
// 运营费率
|
||||
String operatingRate = productRevenues.get( "OperatingRate" ).get( "OperatingRate" );
|
||||
// 运营费用
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user