修改投资意向书判断

master
whb 9 months ago
parent 863930e15e
commit 64ffe49edd

@ -107,9 +107,9 @@ public class ContractInvestmentController {
public ResultEntity<Double> totalInvestAmount(@ApiParam("流程ID") @RequestParam String flowId, public ResultEntity<Double> totalInvestAmount(@ApiParam("流程ID") @RequestParam String flowId,
@ApiParam("总投资额度") @RequestParam Double totalInvest) { @ApiParam("总投资额度") @RequestParam Double totalInvest) {
//金额不低于100万 //金额不低于100万
if (1000000 > totalInvest) { // if (1000000 > totalInvest) {
return new ResultEntity(HttpStatus.BAD_REQUEST, "金额不能低于100万"); // return new ResultEntity(HttpStatus.BAD_REQUEST, "金额不能低于100万");
} // }
//查询估值 //查询估值
FoundProjectExample foundProjectExample = new FoundProjectExample(); FoundProjectExample foundProjectExample = new FoundProjectExample();
@ -136,9 +136,9 @@ public class ContractInvestmentController {
// 金额不低于100万持股比例自动显示为总投资额/估值持股比例不低于5% // 金额不低于100万持股比例自动显示为总投资额/估值持股比例不低于5%
double proportion = (totalInvest / v)*100; double proportion = (totalInvest / v)*100;
if (0.05 > proportion) { // if (0.05 > proportion) {
return new ResultEntity(HttpStatus.BAD_REQUEST, "持股比例不低于5%"); // return new ResultEntity(HttpStatus.BAD_REQUEST, "持股比例不低于5%");
} // }
ProfitManagementExample profitManagementExample = new ProfitManagementExample(); ProfitManagementExample profitManagementExample = new ProfitManagementExample();
profitManagementExample.createCriteria().andFlowIdEqualTo(flowId); profitManagementExample.createCriteria().andFlowIdEqualTo(flowId);

Loading…
Cancel
Save