From 5985510780407efc7e83cc9d30ed293c6b2013fb Mon Sep 17 00:00:00 2001 From: wanghb <17803890193@163.com> Date: Wed, 24 Jan 2024 11:46:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=99=BE=E5=88=86=E5=8F=B7?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/ContractInvestmentController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sztzjy/fund_investment/controller/ContractInvestmentController.java b/src/main/java/com/sztzjy/fund_investment/controller/ContractInvestmentController.java index 1f05023..0d72503 100644 --- a/src/main/java/com/sztzjy/fund_investment/controller/ContractInvestmentController.java +++ b/src/main/java/com/sztzjy/fund_investment/controller/ContractInvestmentController.java @@ -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, "查询不到立项项目"); }