Bladeren bron

更新数据库字段

deason 6 jaren geleden
bovenliggende
commit
0e418fc0c2

+ 15 - 14
examcloud-core-print-dao/src/main/java/cn/com/qmth/examcloud/core/print/entity/ObjectiveQuestionStructure.java

@@ -20,17 +20,13 @@ import javax.persistence.Table;
 @Entity
 @Table(name = "ec_prt_objective_question_structure", indexes = {
         @Index(name = "INDEX_PRT_OBJECTIVE_QUESTION_01", columnList = "examId"),
-        @Index(name = "INDEX_PRT_OBJECTIVE_QUESTION_02", columnList = "paperId")})
+        @Index(name = "INDEX_PRT_OBJECTIVE_QUESTION_02", columnList = "courseId"),
+        @Index(name = "INDEX_PRT_OBJECTIVE_QUESTION_03", columnList = "paperId")})
 public class ObjectiveQuestionStructure extends IdEntity {
     /**
      * 考试ID
      */
     private Long examId;
-    /**
-     * 试卷ID
-     */
-    @Column(length = 50)
-    private String paperId;
     /**
      * 课程ID
      */
@@ -47,6 +43,11 @@ public class ObjectiveQuestionStructure extends IdEntity {
     //@ExcelProperty(name = "课程名称", index = 1)
     @Column(length = 50)
     private String courseName;
+    /**
+     * 试卷ID
+     */
+    @Column(length = 50)
+    private String paperId;
     /**
      * 试卷名称
      */
@@ -97,14 +98,6 @@ public class ObjectiveQuestionStructure extends IdEntity {
         this.examId = examId;
     }
 
-    public String getPaperId() {
-        return paperId;
-    }
-
-    public void setPaperId(String paperId) {
-        this.paperId = paperId;
-    }
-
     public Long getCourseId() {
         return courseId;
     }
@@ -129,6 +122,14 @@ public class ObjectiveQuestionStructure extends IdEntity {
         this.courseName = courseName;
     }
 
+    public String getPaperId() {
+        return paperId;
+    }
+
+    public void setPaperId(String paperId) {
+        this.paperId = paperId;
+    }
+
     public String getPaperName() {
         return paperName;
     }

+ 7 - 6
examcloud-core-print-dao/src/main/java/cn/com/qmth/examcloud/core/print/entity/SubjectiveQuestionStructure.java

@@ -20,17 +20,13 @@ import javax.persistence.Table;
 @Entity
 @Table(name = "ec_prt_subjective_question_structure", indexes = {
         @Index(name = "INDEX_PRT_SUBJECTIVE_QUESTION_01", columnList = "examId"),
-        @Index(name = "INDEX_PRT_SUBJECTIVE_QUESTION_02", columnList = "paperId")})
+        @Index(name = "INDEX_PRT_SUBJECTIVE_QUESTION_02", columnList = "courseId"),
+        @Index(name = "INDEX_PRT_SUBJECTIVE_QUESTION_03", columnList = "paperId")})
 public class SubjectiveQuestionStructure extends IdEntity {
     /**
      * 考试ID
      */
     private Long examId;
-    /**
-     * 试卷ID
-     */
-    @Column(length = 50)
-    private String paperId;
     /**
      * 课程ID
      */
@@ -47,6 +43,11 @@ public class SubjectiveQuestionStructure extends IdEntity {
     //@ExcelProperty(name = "科目名称", index = 1)
     @Column(length = 50)
     private String courseName;
+    /**
+     * 试卷ID
+     */
+    @Column(length = 50)
+    private String paperId;
     /**
      * 试卷名称
      */