瀏覽代碼

模拟考试总分计算bug修改

liujh 3 年之前
父節點
當前提交
f147297cde
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      zd-modules/zd-exam/src/main/java/com/zd/exam/service/impl/ElExamServiceImpl.java

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