修改bug

master
wanghb 1 year ago
parent f6b300cbdf
commit 015dbaaeeb

@ -130,7 +130,10 @@ public class ContractInvestmentController {
//公司名
String companyName = projectPools.get(0).getCompanyName();
//转为Double类型
v = Double.parseDouble(latestValuation);
v = Convert.toDouble(latestValuation);
// 金额不低于100万持股比例自动显示为总投资额/估值持股比例不低于5%
double proportion = totalInvest / v;
if (0.05 > proportion) {
@ -159,6 +162,8 @@ public class ContractInvestmentController {
profitManagement.setInvestmentAmount(BigDecimal.valueOf(totalInvest));
profitManagement.setShareRatio(BigDecimal.valueOf(proportion));
profitManagement.setTotalEquity(BigDecimal.valueOf(v));
profitManagement.setShareCount(BigDecimal.valueOf(totalInvest));
//设置公司名
profitManagement.setProjectName(companyName + "有限公司");
Random random = new Random();

Loading…
Cancel
Save