Kaynağa Gözat

修改试题类

宋悦 8 yıl önce
ebeveyn
işleme
f4ce10e5c0

+ 4 - 4
cqb-comm-utils/src/main/java/com/qmth/cqb/utils/word/DocxProcessUtil.java

@@ -127,10 +127,10 @@ public final class DocxProcessUtil {
      */
     public static void init() {
         File temp_file_exp = new File(TEMP_FILE_EXP);
-        File temp_file_img = new File(TEMP_FILE_IMP);
+        File temp_file_imp = new File(TEMP_FILE_IMP);
         // 如果输出目标文件夹不存在,则创建
-        if (!temp_file_img.exists()) {
-            temp_file_img.mkdirs();
+        if (!temp_file_imp.exists()) {
+            temp_file_imp.mkdirs();
         }
         if (!temp_file_exp.exists()) {
             temp_file_exp.mkdirs();
@@ -838,7 +838,7 @@ public final class DocxProcessUtil {
 
     /**
      * 下载word文件
-     * @param fileName
+     * @param fileNames
      * @param response
      * @throws Exception
      */

+ 22 - 1
cqb-question-resource/src/main/java/com/qmth/cqb/question/model/Question.java

@@ -56,6 +56,10 @@ public class Question implements Serializable {
 
     private String courseName;// 课程名称
 
+    private String courseLevel;//课程层次
+
+    private String courseMajor;//课程专业
+
     private String orgId; // 机构ID
 
     private Map<String, String> quesParams;// 试题属性
@@ -202,7 +206,7 @@ public class Question implements Serializable {
     }
 
     public Question() {
-        this.createTime = CommonUtils.getCurDateTime();
+
     }
 
     public String getCourseNo() {
@@ -229,4 +233,21 @@ public class Question implements Serializable {
         this.orgId = orgId;
     }
 
+    public String getCourseLevel() {
+        return courseLevel;
+    }
+
+    public void setCourseLevel(String courseLevel) {
+        this.courseLevel = courseLevel;
+    }
+
+    public String getCourseMajor() {
+        return courseMajor;
+    }
+
+    public void setCourseMajor(String courseMajor) {
+        this.courseMajor = courseMajor;
+    }
+
+
 }