deason 6 жил өмнө
parent
commit
cec0432a18

+ 25 - 23
examcloud-core-print-dao/src/main/java/cn/com/qmth/examcloud/core/print/entity/ExamQuestionStructure.java

@@ -7,48 +7,50 @@
 
 package cn.com.qmth.examcloud.core.print.entity;
 
-import cn.com.qmth.examcloud.core.print.enums.QuesStructType;
-
 import java.io.Serializable;
 
 /**
  * 试题结构信息
+ *
+ * @See QuesStructType.java
  */
 public class ExamQuestionStructure implements Serializable {
     private static final long serialVersionUID = 1L;
     /**
-     * 试题类型
-     *
-     * @See QuesStructType.java
+     * 单选题数量
+     */
+    private Integer singleChoiceTotal;
+    /**
+     * 多选题数量
      */
-    private String questionType;
+    private Integer multipleChoiceTotal;
     /**
-     * 题数量
+     * 判断题数量
      */
-    private Integer total;
-
-    public String getTypeName() {
-        QuesStructType type = QuesStructType.getByName(questionType);
-        if (type != null) {
-            return type.getTitle();
-        }
-        return null;
+    private Integer boolQuestionTotal;
+
+    public Integer getSingleChoiceTotal() {
+        return singleChoiceTotal;
+    }
+
+    public void setSingleChoiceTotal(Integer singleChoiceTotal) {
+        this.singleChoiceTotal = singleChoiceTotal;
     }
 
-    public String getQuestionType() {
-        return questionType;
+    public Integer getMultipleChoiceTotal() {
+        return multipleChoiceTotal;
     }
 
-    public void setQuestionType(String questionType) {
-        this.questionType = questionType;
+    public void setMultipleChoiceTotal(Integer multipleChoiceTotal) {
+        this.multipleChoiceTotal = multipleChoiceTotal;
     }
 
-    public Integer getTotal() {
-        return total;
+    public Integer getBoolQuestionTotal() {
+        return boolQuestionTotal;
     }
 
-    public void setTotal(Integer total) {
-        this.total = total;
+    public void setBoolQuestionTotal(Integer boolQuestionTotal) {
+        this.boolQuestionTotal = boolQuestionTotal;
     }
 
 }

+ 1 - 1
examcloud-core-print-dao/src/main/java/cn/com/qmth/examcloud/core/print/entity/ExamStructure.java

@@ -50,7 +50,7 @@ public class ExamStructure extends IdEntity {
      * @See ExamQuestionStructure.java
      * <p>
      * 试题结构内容(JSON格式):
-     * [{"questionType":"abc","total":20},{"questionType":"xyz","total":10}]
+     * {"singleChoiceTotal":10,"multipleChoiceTotal":20,"boolQuestionTotal":30}
      */
     @Column(length = 500)
     private String struct;