Browse Source

识别对照

xiatian 9 months ago
parent
commit
54478cd9f3

+ 2 - 1
install/mysql/init/scan_central_db.sql

@@ -381,6 +381,7 @@ CREATE TABLE IF NOT EXISTS `sc_omr_group`
 (
     `id`          bigint      NOT NULL AUTO_INCREMENT,
     `exam_id`     bigint      NOT NULL,
+    `subject_code`       varchar(64) NOT NULL,
     `fixed`       bit(1)      NOT NULL,
     `stage`       varchar(16) NOT NULL,
     `conditions`  text        NOT NULL,
@@ -390,7 +391,7 @@ CREATE TABLE IF NOT EXISTS `sc_omr_group`
     `create_time` bigint DEFAULT NULL,
     `update_time` bigint DEFAULT NULL,
     PRIMARY KEY (`id`),
-    KEY `exam_fixed` (`exam_id`, `fixed`)
+    KEY `exam_fixed` (`exam_id`,`subject_code` , `fixed`)
 ) ENGINE = InnoDB
   DEFAULT CHARSET = utf8mb4;
 

+ 10 - 0
src/main/java/cn/com/qmth/scancentral/entity/OmrGroupEntity.java

@@ -20,6 +20,8 @@ public class OmrGroupEntity extends AuditingEntity {
 
     private Long examId;
 
+    private String subjectCode;
+
     private Boolean fixed;
 
     private Stage stage;
@@ -69,4 +71,12 @@ public class OmrGroupEntity extends AuditingEntity {
         this.totalCount = totalCount;
     }
 
+    public String getSubjectCode() {
+        return subjectCode;
+    }
+
+    public void setSubjectCode(String subjectCode) {
+        this.subjectCode = subjectCode;
+    }
+
 }