deason 4 年之前
父節點
當前提交
cecc51d2ae
共有 1 個文件被更改,包括 16 次插入5 次删除
  1. 16 5
      src/main/java/cn/com/qmth/examcloud/tool/task/oe/InitExamEnvData.java

+ 16 - 5
src/main/java/cn/com/qmth/examcloud/tool/task/oe/InitExamEnvData.java

@@ -32,11 +32,22 @@ public class InitExamEnvData implements Task {
     public void start(String params) {
     public void start(String params) {
         log.info("task start... " + params);
         log.info("task start... " + params);
 
 
-        /*  select * from ec_oe_exam_record_data where root_org_id=0 and exam_type = 'ONLINE' limit 1;  */
-
-        Long examRecordDataId = 1L; // dev
-        // Long examRecordDataId = 219245L; // test
-        // Long examRecordDataId = 4818250L; // prod
+        /*
+            Mysql:
+                SELECT * FROM ec_oe_exam_record_data WHERE root_org_id=0 AND exam_type = 'ONLINE' LIMIT 0,1;
+                UPDATE ec_b_sys_prop SET prop_value = '4818250' WHERE prop_key = 'oe.testDev.examRecordDataId';
+                UPDATE ec_b_sys_prop SET prop_value = '1' WHERE prop_key = 'oe.testDev.order';
+
+            Redis Keys:
+                $_SYS_PROP:oe.testDev.examRecordDataId
+                $_SYS_PROP:oe.testDev.order
+                OE_ERD:{examRecordDataId}
+                OE_ANSWER:{examRecordDataId}_1
+                OE_File_ANSWER:{examRecordDataId}_1
+        */
+
+        // dev-->1,  test-->219245,  prod-->4818250
+        Long examRecordDataId = 1L;
 
 
         this.initExamRecordData(examRecordDataId);
         this.initExamRecordData(examRecordDataId);
         this.initExamQuestion(examRecordDataId);
         this.initExamQuestion(examRecordDataId);