修改百分号问题

master
wanghb 1 year ago
parent b24b31c9db
commit 5985510780

@ -135,7 +135,7 @@ public class ContractInvestmentController {
// 金额不低于100万持股比例自动显示为总投资额/估值持股比例不低于5%
double proportion = totalInvest / v;
double proportion = (totalInvest / v)*100;
if (0.05 > proportion) {
return new ResultEntity(HttpStatus.BAD_REQUEST, "持股比例不低于5%");
}
@ -176,7 +176,7 @@ public class ContractInvestmentController {
//加分该处填写完成得4分
performanceScoreService.calculateScoreByModule("investmentSigningInvestScore", 4, flowId);
return new ResultEntity<>(HttpStatus.OK, proportion*100);
return new ResultEntity<>(HttpStatus.OK, proportion);
} else {
return new ResultEntity(HttpStatus.BAD_REQUEST, "查询不到立项项目");
}

Loading…
Cancel
Save