mingfu 1 месяц назад
Родитель
Сommit
a9dcd11368

+ 1 - 1
ie-admin/src/main/java/com/ruoyi/web/service/ExamService.java

@@ -268,7 +268,7 @@ public class ExamService {
                 calculateWrongAnswers(exitExaminee, questionMap, answersList, PaperType.Test.name());
                 LearnTestStudent uts = new LearnTestStudent();
                 uts.setExamineeId(answerSheet.getExamineeId());
-                uts.setStatus(answerSheet.getState());
+                uts.setStatus(upExaminee.getState());
                 learnTestStudentMapper.updateExamineeStatus(uts);
             }
 

+ 1 - 1
ie-admin/src/main/java/com/ruoyi/web/service/StudentService.java

@@ -70,7 +70,7 @@ public class StudentService {
     public List<Dict> selectStatsForStudent(Long studentId) {
         Integer undone = 0, done = 0;
         for(LearnTestStudent ts : learnTestStudentMapper.selectStatsForStudent(studentId)) {
-            if(ExamineeStatus.Init.getVal().equals(ts.getStatus()) || ExamineeStatus.Exam.getVal().equals(ts.getStatus())) {
+            if(ts.getStatus() < ExamineeStatus.Exam.getVal()) {
                 undone += ts.getCount();
             } else {
                 done += ts.getCount();