|
@@ -221,7 +221,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
// 融资金额
|
|
// 融资金额
|
|
BigDecimal financingAmount = new BigDecimal(0.00);
|
|
BigDecimal financingAmount = new BigDecimal(0.00);
|
|
if (null != contractFinancingInfo && null != contractFinancingInfo.getFinancingAmount()) {
|
|
if (null != contractFinancingInfo && null != contractFinancingInfo.getFinancingAmount()) {
|
|
- financingAmount = contractFinancingInfo.getFinancingAmount().setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ financingAmount = contractFinancingInfo.getFinancingAmount().setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
}
|
|
}
|
|
// 币种中文名称
|
|
// 币种中文名称
|
|
String currency_cn = "人民币";
|
|
String currency_cn = "人民币";
|
|
@@ -285,7 +285,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
// 授信金额
|
|
// 授信金额
|
|
BigDecimal creditLine = new BigDecimal(0.00);
|
|
BigDecimal creditLine = new BigDecimal(0.00);
|
|
if (null != creditResolution && null != creditResolution.getProposedCreditLine()) {
|
|
if (null != creditResolution && null != creditResolution.getProposedCreditLine()) {
|
|
- creditLine = creditResolution.getProposedCreditLine().setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ creditLine = creditResolution.getProposedCreditLine().setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
}
|
|
}
|
|
if (creditLine != null) {
|
|
if (creditLine != null) {
|
|
amountCname = MoneyToCNFormatUtil
|
|
amountCname = MoneyToCNFormatUtil
|
|
@@ -403,7 +403,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
String loanBalanceStr = "";
|
|
String loanBalanceStr = "";
|
|
BigDecimal loanBalance = estate.getLoanBalance();
|
|
BigDecimal loanBalance = estate.getLoanBalance();
|
|
if (null != loanBalance) {
|
|
if (null != loanBalance) {
|
|
- loanBalance = loanBalance.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ loanBalance = loanBalance.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
loanBalanceStr = NumberFormatUtil.convertDecimal(loanBalance,
|
|
loanBalanceStr = NumberFormatUtil.convertDecimal(loanBalance,
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
}
|
|
}
|
|
@@ -444,7 +444,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
String loanBalanceStr = "";
|
|
String loanBalanceStr = "";
|
|
BigDecimal loanBalance = vehicle.getLoanBalance();
|
|
BigDecimal loanBalance = vehicle.getLoanBalance();
|
|
if (null != loanBalance) {
|
|
if (null != loanBalance) {
|
|
- loanBalance = loanBalance.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ loanBalance = loanBalance.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
loanBalanceStr = NumberFormatUtil.convertDecimal(loanBalance,
|
|
loanBalanceStr = NumberFormatUtil.convertDecimal(loanBalance,
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
}
|
|
}
|
|
@@ -466,7 +466,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
String registeredCapitalStr = "";
|
|
String registeredCapitalStr = "";
|
|
BigDecimal registeredCapital = equityAssets.getRegisteredCapital();
|
|
BigDecimal registeredCapital = equityAssets.getRegisteredCapital();
|
|
if (null != registeredCapital) {
|
|
if (null != registeredCapital) {
|
|
- registeredCapital = registeredCapital.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ registeredCapital = registeredCapital.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
registeredCapitalStr = NumberFormatUtil.convertDecimal(registeredCapital,
|
|
registeredCapitalStr = NumberFormatUtil.convertDecimal(registeredCapital,
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
}
|
|
}
|
|
@@ -483,7 +483,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
String investmentAmountStr = "";
|
|
String investmentAmountStr = "";
|
|
BigDecimal investmentAmount = equityAssets.getInvestmentAmount();
|
|
BigDecimal investmentAmount = equityAssets.getInvestmentAmount();
|
|
if (null != investmentAmount) {
|
|
if (null != investmentAmount) {
|
|
- investmentAmount = investmentAmount.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ investmentAmount = investmentAmount.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
investmentAmountStr = NumberFormatUtil.convertDecimal(investmentAmount,
|
|
investmentAmountStr = NumberFormatUtil.convertDecimal(investmentAmount,
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
}
|
|
}
|
|
@@ -627,7 +627,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
String loanBalanceStr = "";
|
|
String loanBalanceStr = "";
|
|
BigDecimal loanBalance = vehicle.getLoanBalance();
|
|
BigDecimal loanBalance = vehicle.getLoanBalance();
|
|
if (null != loanBalance) {
|
|
if (null != loanBalance) {
|
|
- loanBalance = loanBalance.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ loanBalance = loanBalance.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
loanBalanceStr = NumberFormatUtil.convertDecimal(loanBalance,
|
|
loanBalanceStr = NumberFormatUtil.convertDecimal(loanBalance,
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
}
|
|
}
|
|
@@ -649,7 +649,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
String registeredCapitalStr = "";
|
|
String registeredCapitalStr = "";
|
|
BigDecimal registeredCapital = equityAssets.getRegisteredCapital();
|
|
BigDecimal registeredCapital = equityAssets.getRegisteredCapital();
|
|
if (null != registeredCapital) {
|
|
if (null != registeredCapital) {
|
|
- registeredCapital = registeredCapital.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ registeredCapital = registeredCapital.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
registeredCapitalStr = NumberFormatUtil.convertDecimal(registeredCapital,
|
|
registeredCapitalStr = NumberFormatUtil.convertDecimal(registeredCapital,
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
}
|
|
}
|
|
@@ -667,7 +667,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
String investmentAmountStr = "";
|
|
String investmentAmountStr = "";
|
|
BigDecimal investmentAmount = equityAssets.getInvestmentAmount();
|
|
BigDecimal investmentAmount = equityAssets.getInvestmentAmount();
|
|
if (null != investmentAmount) {
|
|
if (null != investmentAmount) {
|
|
- investmentAmount = investmentAmount.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ investmentAmount = investmentAmount.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
investmentAmountStr = NumberFormatUtil.convertDecimal(investmentAmount,
|
|
investmentAmountStr = NumberFormatUtil.convertDecimal(investmentAmount,
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
NumberFormatUtil.THOUSAND_SEPARATOR_TWO_DECIMAL) + "元";
|
|
}
|
|
}
|
|
@@ -871,7 +871,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
// 融资金额中文
|
|
// 融资金额中文
|
|
String financingAmount_cn = "";
|
|
String financingAmount_cn = "";
|
|
if (null != financingAmount && StringUtil.isNotEmpty(currency_cn)) {
|
|
if (null != financingAmount && StringUtil.isNotEmpty(currency_cn)) {
|
|
- financingAmount = financingAmount.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ financingAmount = financingAmount.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
financingAmount_cn = MoneyToCNFormatUtil.formatToCN(financingAmount.doubleValue());
|
|
financingAmount_cn = MoneyToCNFormatUtil.formatToCN(financingAmount.doubleValue());
|
|
}
|
|
}
|
|
// 融资金额英文
|
|
// 融资金额英文
|
|
@@ -996,7 +996,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
map.put("day", DateUtil.getDay(date));
|
|
map.put("day", DateUtil.getDay(date));
|
|
String financingAmountCname = "";
|
|
String financingAmountCname = "";
|
|
if (null != financingInfo.getFinancingAmount()) {
|
|
if (null != financingInfo.getFinancingAmount()) {
|
|
- financingAmount = financingInfo.getFinancingAmount().setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ financingAmount = financingInfo.getFinancingAmount().setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
financingAmountCname = MoneyToCNFormatUtil
|
|
financingAmountCname = MoneyToCNFormatUtil
|
|
.formatToCN(financingInfo.getFinancingAmount().doubleValue());
|
|
.formatToCN(financingInfo.getFinancingAmount().doubleValue());
|
|
}
|
|
}
|
|
@@ -1045,9 +1045,9 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
String creditLineCname = "";
|
|
String creditLineCname = "";
|
|
String creditLine = "";
|
|
String creditLine = "";
|
|
if (null != creditResolution.getProposedCreditLine()) {
|
|
if (null != creditResolution.getProposedCreditLine()) {
|
|
- creditLine = creditResolution.getProposedCreditLine().setScale(2,RoundingMode.HALF_UP).toString();
|
|
|
|
|
|
+ creditLine = creditResolution.getProposedCreditLine().setScale(2,BigDecimal.ROUND_HALF_UP).toString();
|
|
creditLineCname = MoneyToCNFormatUtil
|
|
creditLineCname = MoneyToCNFormatUtil
|
|
- .formatToCN(creditResolution.getProposedCreditLine().setScale(2,RoundingMode.HALF_UP).doubleValue());
|
|
|
|
|
|
+ .formatToCN(creditResolution.getProposedCreditLine().setScale(2,BigDecimal.ROUND_HALF_UP).doubleValue());
|
|
}
|
|
}
|
|
// 合同名称
|
|
// 合同名称
|
|
String contractName = masterContract.getContractName();
|
|
String contractName = masterContract.getContractName();
|
|
@@ -1139,7 +1139,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
String amountEname = "";
|
|
String amountEname = "";
|
|
String amountCname = "";
|
|
String amountCname = "";
|
|
if (financingAmount != null) {
|
|
if (financingAmount != null) {
|
|
- financingAmount = financingAmount.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ financingAmount = financingAmount.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
amountCname = MoneyToCNFormatUtil.formatToCN(financingAmount.doubleValue());
|
|
amountCname = MoneyToCNFormatUtil.formatToCN(financingAmount.doubleValue());
|
|
amountEname = financingAmount + "元";
|
|
amountEname = financingAmount + "元";
|
|
}
|
|
}
|
|
@@ -1234,7 +1234,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
// 融资金额
|
|
// 融资金额
|
|
BigDecimal financingAmount = null;
|
|
BigDecimal financingAmount = null;
|
|
if (null != contractFinancingInfo && null != contractFinancingInfo.getFinancingAmount()) {
|
|
if (null != contractFinancingInfo && null != contractFinancingInfo.getFinancingAmount()) {
|
|
- financingAmount = contractFinancingInfo.getFinancingAmount().setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ financingAmount = contractFinancingInfo.getFinancingAmount().setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
}
|
|
}
|
|
ReviewRltRepay rltRepay = reviewRltRepayService.getById(reviewRltRepayId);
|
|
ReviewRltRepay rltRepay = reviewRltRepayService.getById(reviewRltRepayId);
|
|
//社会统一信用代码/身份证号码
|
|
//社会统一信用代码/身份证号码
|
|
@@ -1351,16 +1351,16 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
.eq("review_quota_disburse_id", contractInfo.getReviewQuotaDisburseId()));
|
|
.eq("review_quota_disburse_id", contractInfo.getReviewQuotaDisburseId()));
|
|
if (null != financingInfo) {
|
|
if (null != financingInfo) {
|
|
//融资利息
|
|
//融资利息
|
|
- BigDecimal financingInterest = financingInfo.getFinancingInterest().setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ BigDecimal financingInterest = financingInfo.getFinancingInterest().setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
//融资金额
|
|
//融资金额
|
|
- BigDecimal financingAmount = financingInfo.getFinancingAmount().setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ BigDecimal financingAmount = financingInfo.getFinancingAmount().setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
BigDecimal financingTotal = new BigDecimal(0.00);
|
|
BigDecimal financingTotal = new BigDecimal(0.00);
|
|
financingTotal = financingTotal
|
|
financingTotal = financingTotal
|
|
- .add(null == financingAmount ? new BigDecimal(0.00) : financingAmount.setScale(2,RoundingMode.HALF_UP))
|
|
|
|
- .add(null == financingInterest ? new BigDecimal(0.00) : financingInterest.setScale(2,RoundingMode.HALF_UP));
|
|
|
|
|
|
+ .add(null == financingAmount ? new BigDecimal(0.00) : financingAmount.setScale(2,BigDecimal.ROUND_HALF_UP))
|
|
|
|
+ .add(null == financingInterest ? new BigDecimal(0.00) : financingInterest.setScale(2,BigDecimal.ROUND_HALF_UP));
|
|
map.put("financingTotal", financingTotal);
|
|
map.put("financingTotal", financingTotal);
|
|
BigDecimal managementFeeAmount = financingInfo.getManagementFeeAmount();
|
|
BigDecimal managementFeeAmount = financingInfo.getManagementFeeAmount();
|
|
- map.put("managementFeeAmount", managementFeeAmount == null ? new BigDecimal(0.00) : managementFeeAmount.setScale(2,RoundingMode.HALF_UP));
|
|
|
|
|
|
+ map.put("managementFeeAmount", managementFeeAmount == null ? new BigDecimal(0.00) : managementFeeAmount.setScale(2,BigDecimal.ROUND_HALF_UP));
|
|
}
|
|
}
|
|
// 保理合同编号
|
|
// 保理合同编号
|
|
String factoringContractNo = masterContract.getContractNo();
|
|
String factoringContractNo = masterContract.getContractNo();
|
|
@@ -1949,7 +1949,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
// 融资利息
|
|
// 融资利息
|
|
financingInterest = financingInfo.getFinancingInterest();
|
|
financingInterest = financingInfo.getFinancingInterest();
|
|
if (null != financingInterest) {
|
|
if (null != financingInterest) {
|
|
- financingInterest = financingInterest.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ financingInterest = financingInterest.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
financingInterestName = MoneyToCNFormatUtil.formatToCN(financingInterest.doubleValue());
|
|
financingInterestName = MoneyToCNFormatUtil.formatToCN(financingInterest.doubleValue());
|
|
}
|
|
}
|
|
// 支付方式
|
|
// 支付方式
|
|
@@ -1971,7 +1971,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
manageFeeRate = StringUtil.subZeroAndDot(PercentageUtil.convertPercentage(financingInfo.getManagementFeeRatio().doubleValue()).split("%")[0] + "%");
|
|
manageFeeRate = StringUtil.subZeroAndDot(PercentageUtil.convertPercentage(financingInfo.getManagementFeeRatio().doubleValue()).split("%")[0] + "%");
|
|
// 管理费金额大写
|
|
// 管理费金额大写
|
|
if (null != manageFeeAmount) {
|
|
if (null != manageFeeAmount) {
|
|
- manageFeeAmount = manageFeeAmount.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ manageFeeAmount = manageFeeAmount.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
manageFeeAmountName = MoneyToCNFormatUtil.formatToCN(manageFeeAmount.doubleValue());
|
|
manageFeeAmountName = MoneyToCNFormatUtil.formatToCN(manageFeeAmount.doubleValue());
|
|
}
|
|
}
|
|
//管理费支付方式
|
|
//管理费支付方式
|
|
@@ -1982,7 +1982,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
otherFeeCollectionMethod = contractFinancingInfo.getOtherFeeCollectionMethod();
|
|
otherFeeCollectionMethod = contractFinancingInfo.getOtherFeeCollectionMethod();
|
|
// 其他费用金额大写
|
|
// 其他费用金额大写
|
|
if (null != otherFee) {
|
|
if (null != otherFee) {
|
|
- otherFee = otherFee.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ otherFee = otherFee.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
otherFeeName = MoneyToCNFormatUtil.formatToCN(otherFee.doubleValue());
|
|
otherFeeName = MoneyToCNFormatUtil.formatToCN(otherFee.doubleValue());
|
|
}
|
|
}
|
|
// 信用风险担保金额
|
|
// 信用风险担保金额
|
|
@@ -2006,7 +2006,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
transferNoticeMethodId = transferNoticeMethodId.trim();
|
|
transferNoticeMethodId = transferNoticeMethodId.trim();
|
|
}
|
|
}
|
|
if (null != financingAmmount) {
|
|
if (null != financingAmmount) {
|
|
- financingAmmount = financingAmmount.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ financingAmmount = financingAmmount.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
financingAmmountCname = MoneyToCNFormatUtil.formatToCN(financingAmmount.doubleValue());
|
|
financingAmmountCname = MoneyToCNFormatUtil.formatToCN(financingAmmount.doubleValue());
|
|
}
|
|
}
|
|
// 提款条件
|
|
// 提款条件
|
|
@@ -2084,14 +2084,14 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
// 金额合计
|
|
// 金额合计
|
|
amountTotal = loanConditionList.stream().filter(e -> {
|
|
amountTotal = loanConditionList.stream().filter(e -> {
|
|
if (null != e.getAmount()) {
|
|
if (null != e.getAmount()) {
|
|
- e.setAmount(e.getAmount().setScale(2,RoundingMode.HALF_UP));
|
|
|
|
|
|
+ e.setAmount(e.getAmount().setScale(2,BigDecimal.ROUND_HALF_UP));
|
|
}
|
|
}
|
|
return null != e.getAmount();
|
|
return null != e.getAmount();
|
|
})
|
|
})
|
|
.map(ReviewLoanCondition::getAmount)
|
|
.map(ReviewLoanCondition::getAmount)
|
|
.reduce(new BigDecimal(0.00), BigDecimal::add);
|
|
.reduce(new BigDecimal(0.00), BigDecimal::add);
|
|
if (null != amountTotal) {
|
|
if (null != amountTotal) {
|
|
- amountTotal = amountTotal.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ amountTotal = amountTotal.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
amountTotalName = MoneyToCNFormatUtil.formatToCN(amountTotal.doubleValue());
|
|
amountTotalName = MoneyToCNFormatUtil.formatToCN(amountTotal.doubleValue());
|
|
}
|
|
}
|
|
map.put("fixedConditionNo", fixedConditionNo);
|
|
map.put("fixedConditionNo", fixedConditionNo);
|
|
@@ -2145,10 +2145,10 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
map3.put("receivableType", "货款");
|
|
map3.put("receivableType", "货款");
|
|
//计算应收账款金融
|
|
//计算应收账款金融
|
|
BigDecimal accountsReceivableAmount = calculateAccountsReceivableAmount(reviewQuotaDisburse.getFinancingBasicInfoId());
|
|
BigDecimal accountsReceivableAmount = calculateAccountsReceivableAmount(reviewQuotaDisburse.getFinancingBasicInfoId());
|
|
- map3.put("receivableAmount", null == accountsReceivableAmount ? new BigDecimal(0.00) : accountsReceivableAmount.setScale(2,RoundingMode.HALF_UP));
|
|
|
|
|
|
+ map3.put("receivableAmount", null == accountsReceivableAmount ? new BigDecimal(0.00) : accountsReceivableAmount.setScale(2,BigDecimal.ROUND_HALF_UP));
|
|
BigDecimal accountsReceivableNetAmountTotal = reviewQuotaDisburse.getAccountsReceivableNetAmountTotal();
|
|
BigDecimal accountsReceivableNetAmountTotal = reviewQuotaDisburse.getAccountsReceivableNetAmountTotal();
|
|
map3.put("receivableNetAmount",
|
|
map3.put("receivableNetAmount",
|
|
- accountsReceivableNetAmountTotal == null ? new BigDecimal(0.00) : accountsReceivableNetAmountTotal.setScale(2,RoundingMode.HALF_UP));
|
|
|
|
|
|
+ accountsReceivableNetAmountTotal == null ? new BigDecimal(0.00) : accountsReceivableNetAmountTotal.setScale(2,BigDecimal.ROUND_HALF_UP));
|
|
if (null != reviewQuotaDisburse.getTerm()) {
|
|
if (null != reviewQuotaDisburse.getTerm()) {
|
|
map3.put("term", reviewQuotaDisburse.getTerm());
|
|
map3.put("term", reviewQuotaDisburse.getTerm());
|
|
}
|
|
}
|
|
@@ -2184,7 +2184,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
creditLine = creditResolution.getProposedCreditLine();
|
|
creditLine = creditResolution.getProposedCreditLine();
|
|
creditBalance = reviewQuotaDisburse.getBusinessCreditBalance();
|
|
creditBalance = reviewQuotaDisburse.getBusinessCreditBalance();
|
|
if (null != creditBalance) {
|
|
if (null != creditBalance) {
|
|
- creditBalance = creditBalance.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ creditBalance = creditBalance.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
if (creditBalance.compareTo(BigDecimal.ZERO) == -1) {
|
|
if (creditBalance.compareTo(BigDecimal.ZERO) == -1) {
|
|
creditBalanceName = MoneyToCNFormatUtil.formatToCN(creditBalance.abs().doubleValue());
|
|
creditBalanceName = MoneyToCNFormatUtil.formatToCN(creditBalance.abs().doubleValue());
|
|
creditBalanceName = "负" + creditBalanceName;
|
|
creditBalanceName = "负" + creditBalanceName;
|
|
@@ -2194,7 +2194,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
}
|
|
}
|
|
// 授信金额中文
|
|
// 授信金额中文
|
|
if (null != creditLine) {
|
|
if (null != creditLine) {
|
|
- creditLine = creditLine.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ creditLine = creditLine.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
creditLineName = MoneyToCNFormatUtil.formatToCN(creditLine.doubleValue());
|
|
creditLineName = MoneyToCNFormatUtil.formatToCN(creditLine.doubleValue());
|
|
}
|
|
}
|
|
// 授信期限
|
|
// 授信期限
|
|
@@ -2389,7 +2389,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
accountsReceivableAmount = informationList.stream()
|
|
accountsReceivableAmount = informationList.stream()
|
|
.filter(accountsReceivable -> {
|
|
.filter(accountsReceivable -> {
|
|
if (null != accountsReceivable.getAccountsReceivableAmount()) {
|
|
if (null != accountsReceivable.getAccountsReceivableAmount()) {
|
|
- accountsReceivable.setAccountsReceivableAmount(accountsReceivable.getAccountsReceivableAmount().setScale(2, RoundingMode.HALF_UP));
|
|
|
|
|
|
+ accountsReceivable.setAccountsReceivableAmount(accountsReceivable.getAccountsReceivableAmount().setScale(2, BigDecimal.ROUND_HALF_UP));
|
|
}
|
|
}
|
|
return null != accountsReceivable.getAccountsReceivableAmount();
|
|
return null != accountsReceivable.getAccountsReceivableAmount();
|
|
})
|
|
})
|
|
@@ -2555,9 +2555,9 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
}
|
|
}
|
|
noticeMap.put("financingRateStr", financingRateStr);
|
|
noticeMap.put("financingRateStr", financingRateStr);
|
|
BigDecimal financingAmmount = financingInfo.getFinancingAmount() == null ?
|
|
BigDecimal financingAmmount = financingInfo.getFinancingAmount() == null ?
|
|
- new BigDecimal(0.00) : financingInfo.getFinancingAmount().setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ new BigDecimal(0.00) : financingInfo.getFinancingAmount().setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
financingAmountInterest = financingAmmount
|
|
financingAmountInterest = financingAmmount
|
|
- .add(financingInfo.getFinancingInterest() == null ? new BigDecimal(0.00) : financingInfo.getFinancingInterest().setScale(2,RoundingMode.HALF_UP));
|
|
|
|
|
|
+ .add(financingInfo.getFinancingInterest() == null ? new BigDecimal(0.00) : financingInfo.getFinancingInterest().setScale(2,BigDecimal.ROUND_HALF_UP));
|
|
noticeMap.put("financingAmountInterest", financingAmountInterest);
|
|
noticeMap.put("financingAmountInterest", financingAmountInterest);
|
|
Map<Long, List<Map<String, Object>>> groupingByMap = new HashMap<>();
|
|
Map<Long, List<Map<String, Object>>> groupingByMap = new HashMap<>();
|
|
|
|
|
|
@@ -2604,7 +2604,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
noticeMap.put("changeList", changeList);
|
|
noticeMap.put("changeList", changeList);
|
|
noticeMap.put("receivableAmountAll", accountsReceivableAmount);
|
|
noticeMap.put("receivableAmountAll", accountsReceivableAmount);
|
|
if (null != invoiceAmmountAll) {
|
|
if (null != invoiceAmmountAll) {
|
|
- noticeMap.put("invoiceAmmountAll", invoiceAmmountAll.setScale(2,RoundingMode.HALF_UP));
|
|
|
|
|
|
+ noticeMap.put("invoiceAmmountAll", invoiceAmmountAll.setScale(2,BigDecimal.ROUND_HALF_UP));
|
|
} else {
|
|
} else {
|
|
noticeMap.put("invoiceAmmountAll", "");
|
|
noticeMap.put("invoiceAmmountAll", "");
|
|
}
|
|
}
|
|
@@ -2730,7 +2730,7 @@ public class NewContractMakingServiceImpl implements INewContractMakingService {
|
|
.add(financingAmmount
|
|
.add(financingAmmount
|
|
.multiply(new BigDecimal("0.12").subtract(financingInfo.getManagementFeeRatio()))
|
|
.multiply(new BigDecimal("0.12").subtract(financingInfo.getManagementFeeRatio()))
|
|
.divide(new BigDecimal("360"), 8, BigDecimal.ROUND_HALF_UP).multiply(financingDays));
|
|
.divide(new BigDecimal("360"), 8, BigDecimal.ROUND_HALF_UP).multiply(financingDays));
|
|
- BigDecimal balance = balanceLong.setScale(2,RoundingMode.HALF_UP);
|
|
|
|
|
|
+ BigDecimal balance = balanceLong.setScale(2,BigDecimal.ROUND_HALF_UP);
|
|
confirmMap.put("balance", balance);
|
|
confirmMap.put("balance", balance);
|
|
} else {
|
|
} else {
|
|
confirmMap.put("balance", BigDecimal.ZERO);
|
|
confirmMap.put("balance", BigDecimal.ZERO);
|