feat:用户添加校验

hangao
wangxy 5 months ago
parent 202cab12cb
commit ebf3b2301e

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

Loading…
Cancel
Save