yin 1 month ago
parent
commit
707d1b4d4f

+ 2 - 0
stmms-web/src/main/java/cn/com/qmth/stmms/admin/thread/OnlineExamThread.java

@@ -256,6 +256,7 @@ public class OnlineExamThread implements Runnable {
                         double score = question.getDouble("score");
                         q.setTotalScore(score);
                         q.setIntervalScore(0.5);
+                        q.setTrackCount(0);
                         totalScore = totalScore.add(BigDecimal.valueOf(score));
                         list.add(q);
                     }
@@ -273,6 +274,7 @@ public class OnlineExamThread implements Runnable {
                     double score = sub.getDouble("score");
                     q.setTotalScore(score);
                     q.setIntervalScore(0.5);
+                    q.setTrackCount(0);
                     totalScore = totalScore.add(BigDecimal.valueOf(score));
                     list.add(q);
                 }

+ 2 - 0
stmms-web/src/main/java/cn/com/qmth/stmms/admin/utils/PaperJsonUtils.java

@@ -49,6 +49,7 @@ public class PaperJsonUtils {
                         q.setTotalScore(score);
                         q.setIntervalScore(0.5);
                         q.setPaperType("#");
+                        q.setTrackCount(0);
                         int structType = question.getInt("structType");
                         if (structType == 1 || structType == 2 || structType == 3) {
                             q.setObjective(true);
@@ -87,6 +88,7 @@ public class PaperJsonUtils {
                     q.setTotalScore(score);
                     q.setIntervalScore(0.5);
                     q.setPaperType("#");
+                    q.setTrackCount(0);
                     int structType = sub.getInt("structType");
                     if (structType == 1 || structType == 2 || structType == 3) {
                         q.setObjective(true);

+ 1 - 0
stmms-web/src/main/java/cn/com/qmth/stmms/admin/vo/StructQuestion.java

@@ -35,6 +35,7 @@ public class StructQuestion {
         question.setMainTitle(StringUtils.trimToNull(mainTitle));
         question.setAnswer(StringUtils.trimToNull(answer));
         question.setTotalScore(totalScore);
+        question.setTrackCount(0);
         if (intervalScore == null) {
             question.setIntervalScore(intervalScore);
         } else {

+ 1 - 0
stmms-web/src/main/java/cn/com/qmth/stmms/api/dto/QuestionDTO.java

@@ -36,6 +36,7 @@ public class QuestionDTO {
         }
         question.setType(type);
         question.setObjectivePolicy(objectivePolicy);
+        question.setTrackCount(0);
         return question;
     }