deason пре 6 година
родитељ
комит
e74da75632

+ 17 - 6
examcloud-core-questions-dao/src/main/java/cn/com/qmth/examcloud/core/questions/dao/entity/Question.java

@@ -2,6 +2,7 @@ package cn.com.qmth.examcloud.core.questions.dao.entity;
 
 import cn.com.qmth.examcloud.core.questions.base.question.enums.QuesStructType;
 import cn.com.qmth.examcloud.core.questions.dao.entity.base.IdBase;
+import cn.com.qmth.examcloud.question.commons.core.question.AnswerType;
 import org.springframework.data.annotation.Transient;
 
 import java.util.ArrayList;
@@ -16,10 +17,11 @@ public class Question extends IdBase {
     private String quesBody;// 题干,默认为html
 
     private String quesBodyWord;// 题干word
+
     /**
      * 试题wordpkg对象序列化数据
      */
-//    private byte[] quesPkg;
+    //private byte[] quesPkg;
 
     /**
      * 试题pkg路径Id
@@ -78,6 +80,11 @@ public class Question extends IdBase {
 
     private Specialty specialty;
 
+    /*
+     * 作答类型
+     */
+    private AnswerType answerType;
+
     /**
      * 试题属性
      */
@@ -248,10 +255,6 @@ public class Question extends IdBase {
         this.score = score;
     }
 
-    public Question() {
-
-    }
-
     public String getCourseNo() {
         return courseNo;
     }
@@ -404,4 +407,12 @@ public class Question extends IdBase {
         this.isolated = isolated;
     }
 
-}
+    public AnswerType getAnswerType() {
+        return answerType;
+    }
+
+    public void setAnswerType(AnswerType answerType) {
+        this.answerType = answerType;
+    }
+
+}