Przeglądaj źródła

模拟考试总分计算bug修改

liujh 3 lat temu
rodzic
commit
f147297cde

+ 2 - 2
zd-modules/zd-exam/src/main/java/com/zd/exam/service/impl/ElExamServiceImpl.java

@@ -255,7 +255,7 @@ public class ElExamServiceImpl implements ElExamService {
         int objScore = 0;
 
         // 题库组卷
-        if (1 == exam.getJoinType()) {
+        //if (1 == exam.getJoinType()) {
             List<ElExamRepo> repoList = exam.getRepoList();
 
             for (ElExamRepo item : repoList) {
@@ -278,7 +278,7 @@ public class ElExamServiceImpl implements ElExamService {
                     objScore += item.getJudgeCount() * item.getJudgeScore();
                 }
             }
-        }
+        //}
 
         exam.setTotalScore(objScore);
     }