|
|
|
@ -11,6 +11,7 @@ import com.sztzjy.fund_investment.entity.*;
|
|
|
|
|
import com.sztzjy.fund_investment.entity.dto.DDMDto;
|
|
|
|
|
import com.sztzjy.fund_investment.entity.dto.FCFFFCFEDto;
|
|
|
|
|
import com.sztzjy.fund_investment.mapper.FoundProjectMapper;
|
|
|
|
|
import com.sztzjy.fund_investment.mapper.PerformanceScoreMapper;
|
|
|
|
|
import com.sztzjy.fund_investment.mapper.ProjectPoolMapper;
|
|
|
|
|
import com.sztzjy.fund_investment.service.*;
|
|
|
|
|
import com.sztzjy.fund_investment.util.ResultEntity;
|
|
|
|
@ -28,10 +29,8 @@ import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
|
import java.net.URLEncoder;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Arrays;
|
|
|
|
|
import java.util.*;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import java.util.TreeMap;
|
|
|
|
|
|
|
|
|
|
//yz
|
|
|
|
|
@RestController
|
|
|
|
@ -56,6 +55,8 @@ public class ProjectValuationController {
|
|
|
|
|
PerformanceScoreService scoreService;
|
|
|
|
|
@Autowired
|
|
|
|
|
ISysProjectDueDiligenceService projectDueDiligenceService;
|
|
|
|
|
@Autowired
|
|
|
|
|
PerformanceScoreMapper performanceScoreMapper;
|
|
|
|
|
|
|
|
|
|
@GetMapping("getPE")
|
|
|
|
|
@ApiOperation("相对估值法-PE市盈率法")
|
|
|
|
@ -166,11 +167,14 @@ public class ProjectValuationController {
|
|
|
|
|
if (StringUtils.isBlank(foundProject.getFlowId())) {
|
|
|
|
|
return new ResultEntity(HttpStatus.BAD_REQUEST, "流程ID为空");
|
|
|
|
|
}
|
|
|
|
|
if (StringUtils.isBlank(foundProject.getProjectValuationRelative())) {
|
|
|
|
|
if (StringUtils.isBlank(foundProject.getProjectValuationAbsolute())) {
|
|
|
|
|
return new ResultEntity(HttpStatus.BAD_REQUEST, "绝对估值结论为空");
|
|
|
|
|
}
|
|
|
|
|
projectDueDiligenceService.updateServiceDueDiligence(foundProject);
|
|
|
|
|
scoreService.calculateScoreByModule("projectValuationRelativeScore",2,foundProject.getFlowId());
|
|
|
|
|
PerformanceScore performanceScore = scoreService.getByFlowId(foundProject.getFlowId());
|
|
|
|
|
performanceScore.setProjectValuationTime(new Date());
|
|
|
|
|
performanceScoreMapper.updateByPrimaryKey(performanceScore);
|
|
|
|
|
return new ResultEntity(HttpStatus.OK, "绝对估值结论保存成功");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|