|
|
@ -75,11 +75,14 @@ public class UserExamManager {
|
|
|
|
record.setExamId(examId);
|
|
|
|
record.setExamId(examId);
|
|
|
|
record.setMaxScore(score);
|
|
|
|
record.setMaxScore(score);
|
|
|
|
record.setPassed(passed);
|
|
|
|
record.setPassed(passed);
|
|
|
|
|
|
|
|
record.setTryCount(1);
|
|
|
|
elUserExamService.save(record);
|
|
|
|
elUserExamService.save(record);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 修复低分数不加入统计问题
|
|
|
|
// 修复低分数不加入统计问题
|
|
|
|
record.setTryCount(record.getTryCount()+1);
|
|
|
|
if(Objects.nonNull(record.getTryCount())){
|
|
|
|
|
|
|
|
record.setTryCount(record.getTryCount()+1);
|
|
|
|
|
|
|
|
}
|
|
|
|
record.setUpdateTime(new Date());
|
|
|
|
record.setUpdateTime(new Date());
|
|
|
|
if(record.getMaxScore() < score){
|
|
|
|
if(record.getMaxScore() < score){
|
|
|
|
record.setMaxScore(score);
|
|
|
|
record.setMaxScore(score);
|
|
|
|