修改实务认知得分和智能评分规则

master
xiaoCJ 12 months ago
parent 91ebdb6be7
commit 2e81787207

@ -155,6 +155,7 @@ public class TopicController {
if (time >= 120) { if (time >= 120) {
score = BigDecimal.valueOf(5); score = BigDecimal.valueOf(5);
performanceScore.setPracticalCognitionScore(score); performanceScore.setPracticalCognitionScore(score);
performanceScore.setTotalScore(score);
} else { } else {
performanceScore.setPracticalCognitionScore(BigDecimal.ZERO); performanceScore.setPracticalCognitionScore(BigDecimal.ZERO);
} }

@ -365,22 +365,20 @@ public class ClassScoreServiceImpl implements ClassScoreService {
} }
for (String flowIdByList : list) { for (String flowIdByList : list) {
TrainingReportExample trainingReportExample = new TrainingReportExample(); TrainingReportExample trainingReportExample = new TrainingReportExample();
trainingReportExample.createCriteria().andSchoolIdEqualTo(schoolId).andFlowIdEqualTo(flowIdByList); trainingReportExample.createCriteria().andSchoolIdEqualTo(schoolId).andFlowIdEqualTo(flowIdByList).andStepEqualTo("投资报告");
PerformanceScore scoreByFlowId = performanceScoreService.getByFlowId(flowIdByList); PerformanceScore scoreByFlowId = performanceScoreService.getByFlowId(flowIdByList);
List<TrainingReport> trainingReports = trainingReportMapper.selectByExample(trainingReportExample); List<TrainingReport> trainingReports = trainingReportMapper.selectByExampleWithBLOBs(trainingReportExample);
if (trainingReports.isEmpty()) { if (trainingReports.isEmpty()) {
continue; continue;
} }
String experience = "";
TrainingReport trainingReport = trainingReports.get(0); TrainingReport trainingReport = trainingReports.get(0);
if (trainingReport.getExperience() == null) { if (scoreByFlowId.getExperienceScore() == null && StringUtils.isBlank(trainingReport.getExperience())) {
performanceScoreService.updateScore("experienceScore", 0, flowIdByList); performanceScoreService.updateScore("experienceScore", 0, flowIdByList);
trainingReport.setExperienceScore(BigDecimal.ZERO); trainingReport.setExperienceScore(BigDecimal.ZERO);
} else {
experience = trainingReport.getExperience();
} }
//实训心得 //实训心得
if (scoreByFlowId.getExperienceScore() == null) { if (scoreByFlowId.getExperienceScore() == null && StringUtils.isNotBlank(trainingReport.getExperience())) {
String experience = trainingReport.getExperience();
if (experience.length() < 100) { if (experience.length() < 100) {
performanceScoreService.updateScore("experienceScore", 1, flowIdByList); performanceScoreService.updateScore("experienceScore", 1, flowIdByList);
trainingReport.setExperienceScore(BigDecimal.ONE); trainingReport.setExperienceScore(BigDecimal.ONE);
@ -417,6 +415,7 @@ public class ClassScoreServiceImpl implements ClassScoreService {
System.out.println(length); System.out.println(length);
} }
/* /*
* @author xcj * @author xcj
* @Date 2023/11/29 * @Date 2023/11/29

Loading…
Cancel
Save