|
|
|
@ -438,10 +438,7 @@ public class ClassScoreServiceImpl implements ClassScoreService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 实训成绩展示
|
|
|
|
|
* @author xcj
|
|
|
|
|
* @Date 2023/11/29
|
|
|
|
|
*/
|
|
|
|
|
// 实训成绩
|
|
|
|
|
@Override
|
|
|
|
|
public PerformanceTrainingScoreDto getStuTrainingScore(String flowId) {
|
|
|
|
|
PerformanceScoreExample example = new PerformanceScoreExample();
|
|
|
|
@ -453,43 +450,61 @@ public class ClassScoreServiceImpl implements ClassScoreService {
|
|
|
|
|
PerformanceScore performanceScore = performanceScores.get(0);
|
|
|
|
|
PerformanceTrainingScoreDto performanceTrainingScoreDto = new PerformanceTrainingScoreDto();
|
|
|
|
|
performanceTrainingScoreDto.setFlowId(performanceScore.getFlowId());
|
|
|
|
|
performanceTrainingScoreDto.setPracticalCognitionScore(performanceScore.getPracticalCognitionScore());
|
|
|
|
|
performanceTrainingScoreDto.setKnowledgeAssessmentScore(performanceScore.getKnowledgeAssessmentScore());
|
|
|
|
|
performanceTrainingScoreDto.setFundraisingScore(performanceScore.getFundraisingScore());
|
|
|
|
|
performanceTrainingScoreDto.setProjectSearchScore(performanceScore.getProjectSearchScore().add(performanceScore.getProjectSearchReportScore()));
|
|
|
|
|
performanceTrainingScoreDto.setProjectDueDiligenceScore(performanceScore.getProjectDueDiligenceScore()
|
|
|
|
|
.add(performanceScore.getProjectDueDiligenceFinanceReportScore()
|
|
|
|
|
.add(performanceScore.getProjectDueDiligenceBusinessReportScore()
|
|
|
|
|
.add(performanceScore.getProjectValuationEstimationRiskScore()))));
|
|
|
|
|
|
|
|
|
|
performanceTrainingScoreDto.setProjectValuationScore(performanceScore.getProjectValuationRelativeScore()
|
|
|
|
|
.add(performanceScore.getProjectValuationScore()
|
|
|
|
|
.add(performanceScore.getProjectValuationAbsoluteScore()
|
|
|
|
|
.add(performanceScore.getProjectUseValuationAbsoluteScore()
|
|
|
|
|
.add(performanceScore.getProjectUseValuationRelativeScore())))));
|
|
|
|
|
performanceTrainingScoreDto.setInvestmentSigningScore(performanceScore.getInvestmentSigningVlauationReportScore()
|
|
|
|
|
.add(performanceScore.getInvestmentSigningDiligenceReportScore()
|
|
|
|
|
.add(performanceScore.getInvestmentSigningInvestScore()
|
|
|
|
|
.add(performanceScore.getInvestmentSigningScore()))));
|
|
|
|
|
|
|
|
|
|
performanceTrainingScoreDto.setIpoScore(performanceScore.getIpoFlowScore().add(performanceScore.getIpoListedConditionScore()
|
|
|
|
|
.add(performanceScore.getIpoListedSectorScore())));
|
|
|
|
|
|
|
|
|
|
performanceTrainingScoreDto.setPricingIssuanceScore(performanceScore.getNewPricingIssuanceScore()
|
|
|
|
|
.add(performanceScore.getPricingIssuanceConfirmScore().add(performanceScore.getInitPricingIssuanceScore()
|
|
|
|
|
.add(performanceScore.getPricingIssuanceEnteringScore()))));
|
|
|
|
|
|
|
|
|
|
performanceTrainingScoreDto.setProfitManagementScore(performanceScore.getProfitManagementMarketValueScore()
|
|
|
|
|
.add(performanceScore.getProfitManagementFundScore()
|
|
|
|
|
.add(performanceScore.getProfitManagementFundExitScore()
|
|
|
|
|
.add(performanceScore.getProfitManagementMarketValueExitScore()))));
|
|
|
|
|
|
|
|
|
|
performanceTrainingScoreDto.setProfitDistributionScore(performanceScore.getProfitDistributionScore());
|
|
|
|
|
performanceTrainingScoreDto.setInvestmentReportScore(performanceScore.getInvestmentReportScore().add(performanceScore.getExperienceScore()));
|
|
|
|
|
performanceTrainingScoreDto.setTotalScore(performanceScore.getTotalScore());
|
|
|
|
|
|
|
|
|
|
performanceTrainingScoreDto.setPracticalCognitionScore(Optional.ofNullable(performanceScore.getPracticalCognitionScore()).orElse(BigDecimal.ZERO));
|
|
|
|
|
performanceTrainingScoreDto.setKnowledgeAssessmentScore(Optional.ofNullable(performanceScore.getKnowledgeAssessmentScore()).orElse(BigDecimal.ZERO));
|
|
|
|
|
performanceTrainingScoreDto.setFundraisingScore(Optional.ofNullable(performanceScore.getFundraisingScore()).orElse(BigDecimal.ZERO));
|
|
|
|
|
performanceTrainingScoreDto.setProjectSearchScore(Optional.ofNullable(performanceScore.getProjectSearchScore()).map(score -> score.add(Optional.ofNullable(performanceScore.getProjectSearchReportScore()).orElse(BigDecimal.ZERO))).orElse(BigDecimal.ZERO));
|
|
|
|
|
performanceTrainingScoreDto.setProjectDueDiligenceScore(
|
|
|
|
|
Optional.ofNullable(performanceScore.getProjectDueDiligenceScore()).map(score ->
|
|
|
|
|
score.add(Optional.ofNullable(performanceScore.getProjectDueDiligenceFinanceReportScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getProjectDueDiligenceBusinessReportScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getProjectValuationEstimationRiskScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
).orElse(BigDecimal.ZERO)
|
|
|
|
|
);
|
|
|
|
|
performanceTrainingScoreDto.setProjectValuationScore(
|
|
|
|
|
Optional.ofNullable(performanceScore.getProjectValuationRelativeScore()).orElse(BigDecimal.ZERO)
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getProjectValuationScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getProjectValuationAbsoluteScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getProjectUseValuationAbsoluteScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getProjectUseValuationRelativeScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
performanceTrainingScoreDto.setInvestmentSigningScore(
|
|
|
|
|
Optional.ofNullable(performanceScore.getInvestmentSigningVlauationReportScore()).orElse(BigDecimal.ZERO)
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getInvestmentSigningDiligenceReportScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getInvestmentSigningInvestScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getInvestmentSigningScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
performanceTrainingScoreDto.setIpoScore(
|
|
|
|
|
Optional.ofNullable(performanceScore.getIpoFlowScore()).orElse(BigDecimal.ZERO)
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getIpoListedConditionScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getIpoListedSectorScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
performanceTrainingScoreDto.setPricingIssuanceScore(
|
|
|
|
|
Optional.ofNullable(performanceScore.getNewPricingIssuanceScore()).orElse(BigDecimal.ZERO)
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getPricingIssuanceConfirmScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getInitPricingIssuanceScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getPricingIssuanceEnteringScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
performanceTrainingScoreDto.setProfitManagementScore(
|
|
|
|
|
Optional.ofNullable(performanceScore.getProfitManagementMarketValueScore()).orElse(BigDecimal.ZERO)
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getProfitManagementFundScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getProfitManagementFundExitScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
.add(Optional.ofNullable(performanceScore.getProfitManagementMarketValueExitScore()).orElse(BigDecimal.ZERO))
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
performanceTrainingScoreDto.setProfitDistributionScore(Optional.ofNullable(performanceScore.getProfitDistributionScore()).orElse(BigDecimal.ZERO));
|
|
|
|
|
performanceTrainingScoreDto.setInvestmentReportScore(Optional.ofNullable(performanceScore.getInvestmentReportScore()).orElse(BigDecimal.ZERO).add(Optional.ofNullable(performanceScore.getExperienceScore()).orElse(BigDecimal.ZERO)));
|
|
|
|
|
performanceTrainingScoreDto.setTotalScore(Optional.ofNullable(performanceScore.getTotalScore()).orElse(BigDecimal.ZERO));
|
|
|
|
|
|
|
|
|
|
return performanceTrainingScoreDto;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 实训成绩页面展示五个结论及分数
|
|
|
|
|
* @author xcj
|
|
|
|
|
* @Date 2023/11/30
|
|
|
|
|