|
@@ -82,12 +82,17 @@ public class FinanceInfController extends BaseController {
|
|
|
term = AmtUtil.add(term,"1",0);
|
|
term = AmtUtil.add(term,"1",0);
|
|
|
/*预计融资成本:融资金额*融资费率*预计融资期限 / 365 + 融资金额 * 服务费率*/
|
|
/*预计融资成本:融资金额*融资费率*预计融资期限 / 365 + 融资金额 * 服务费率*/
|
|
|
//融资金额 * 服务费率
|
|
//融资金额 * 服务费率
|
|
|
- String money = AmtUtil.multiply(zfiAmount,zfpcrChargeRate,2);
|
|
|
|
|
|
|
+ String money = AmtUtil.multiply(zfiAmount,zfpcrChargeRate,4);
|
|
|
|
|
+ System.out.println("money==========>"+money);
|
|
|
//预计融资成本
|
|
//预计融资成本
|
|
|
- String cost = AmtUtil.multiply(zfiAmount,zfpcrRate);
|
|
|
|
|
- cost = AmtUtil.multiply(cost,term);
|
|
|
|
|
- cost = AmtUtil.divide(cost,"360");
|
|
|
|
|
|
|
+ String cost = AmtUtil.multiply(zfiAmount,zfpcrRate,4);
|
|
|
|
|
+ System.out.println("cost1==========>"+cost);
|
|
|
|
|
+ cost = AmtUtil.multiply(cost,term,4);
|
|
|
|
|
+ System.out.println("cost2==========>"+cost);
|
|
|
|
|
+ cost = AmtUtil.divide(cost,"360",4);
|
|
|
|
|
+ System.out.println("cost3==========>"+cost);
|
|
|
cost = AmtUtil.add(cost,money,2);
|
|
cost = AmtUtil.add(cost,money,2);
|
|
|
|
|
+ System.out.println("cost4==========>"+cost);
|
|
|
/*预计净融资额:融资金额 – 预计融资成本*/
|
|
/*预计净融资额:融资金额 – 预计融资成本*/
|
|
|
String amount = AmtUtil.subtract(zfiAmount,cost,2);
|
|
String amount = AmtUtil.subtract(zfiAmount,cost,2);
|
|
|
/*融资放款后:三个预计值,改为实际值*/
|
|
/*融资放款后:三个预计值,改为实际值*/
|
|
@@ -102,10 +107,14 @@ public class FinanceInfController extends BaseController {
|
|
|
}
|
|
}
|
|
|
termIng = AmtUtil.add(termIng,"1",0);
|
|
termIng = AmtUtil.add(termIng,"1",0);
|
|
|
/*融资成本:融资金额*融资费率*融资期限 / 365 + 融资金额 * 服务费率*/
|
|
/*融资成本:融资金额*融资费率*融资期限 / 365 + 融资金额 * 服务费率*/
|
|
|
- String costIng = AmtUtil.multiply(zfiAmount,zfpcrRate);
|
|
|
|
|
- costIng = AmtUtil.multiply(costIng,termIng);
|
|
|
|
|
- costIng = AmtUtil.divide(costIng,"360");
|
|
|
|
|
|
|
+ String costIng = AmtUtil.multiply(zfiAmount,zfpcrRate,4);
|
|
|
|
|
+ System.out.println("costIng1==========>"+costIng);
|
|
|
|
|
+ costIng = AmtUtil.multiply(costIng,termIng,4);
|
|
|
|
|
+ System.out.println("costIng2==========>"+costIng);
|
|
|
|
|
+ costIng = AmtUtil.divide(costIng,"360",4);
|
|
|
|
|
+ System.out.println("costIng3==========>"+costIng);
|
|
|
costIng = AmtUtil.add(costIng,money,2);
|
|
costIng = AmtUtil.add(costIng,money,2);
|
|
|
|
|
+ System.out.println("costIng4==========>"+costIng);
|
|
|
/*净融资额:融资金额 – 融资成本*/
|
|
/*净融资额:融资金额 – 融资成本*/
|
|
|
String amountIng = AmtUtil.subtract(zfiAmount,costIng,2);
|
|
String amountIng = AmtUtil.subtract(zfiAmount,costIng,2);
|
|
|
//融资期限
|
|
//融资期限
|
|
@@ -114,7 +123,7 @@ public class FinanceInfController extends BaseController {
|
|
|
m.put("costIng",costIng);
|
|
m.put("costIng",costIng);
|
|
|
//净融资额
|
|
//净融资额
|
|
|
m.put("amountIng",amountIng);
|
|
m.put("amountIng",amountIng);
|
|
|
- System.out.println("融资期限:"+termIng+"----融资成本:"+costIng+"----净融资额:"+amountIng);
|
|
|
|
|
|
|
+ System.out.println("融资期限1:"+termIng+"----融资成本:"+costIng+"----净融资额:"+amountIng);
|
|
|
}
|
|
}
|
|
|
//预计融资期限
|
|
//预计融资期限
|
|
|
m.put("term",term);
|
|
m.put("term",term);
|
|
@@ -122,7 +131,7 @@ public class FinanceInfController extends BaseController {
|
|
|
m.put("cost",cost);
|
|
m.put("cost",cost);
|
|
|
//预计净融资额
|
|
//预计净融资额
|
|
|
m.put("amount",amount);
|
|
m.put("amount",amount);
|
|
|
- System.out.println("预计融资期限:"+term+"----预计融资成本:"+cost+"----预计净融资额:"+amount);
|
|
|
|
|
|
|
+ System.out.println("预计融资期限1:"+term+"----预计融资成本:"+cost+"----预计净融资额:"+amount);
|
|
|
}
|
|
}
|
|
|
// LambdaQueryWrapper<ZcFinanceInf> queryWrapper = new LambdaQueryWrapper<>();
|
|
// LambdaQueryWrapper<ZcFinanceInf> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
// queryWrapper.eq(ZcFinanceInf::getZfiSupplierId,companyId);
|
|
// queryWrapper.eq(ZcFinanceInf::getZfiSupplierId,companyId);
|