Bläddra i källkod

考试相关代码提交

pans 6 månader sedan
förälder
incheckning
6015a5bd55

+ 1 - 1
snowy-plugin/snowy-plugin-exam/snowy-plugin-exam-func/src/main/java/vip/xiaonuo/exam/mapper/mapping/ExamPaperMapper.xml

@@ -423,7 +423,7 @@
     FROM
       t_exam_paper tep
     LEFT JOIN t_exam_paper_answer tepa ON tepa.exam_paper_id = tep.id
-    LEFT JOIN COURSE_RELATE cr ON cr.RELATE_ID = tep.id AND cr.FUNC_TYPE = #{funcType}
+    LEFT JOIN COURSE_RELATE cr ON cr.RELATE_ID = tep.id AND cr.FUNC_TYPE = #{bo.funcType}
     LEFT JOIN COURSE_CLASSHOUR cc ON cr.MAIN_ID = cc.ID
     LEFT JOIN COURSE_CHAPTER ch ON cc.CHAPTER_ID = ch.ID
     LEFT JOIN COURSE_INFO ci ON ch.COURSE_ID = ci.COURSE_ID

+ 11 - 0
snowy-plugin/snowy-plugin-exam/snowy-plugin-exam-func/src/main/java/vip/xiaonuo/exam/viewmodel/student/exam/ExamPaperPageVM.java

@@ -15,6 +15,8 @@ public class ExamPaperPageVM extends BasePage {
 
     private String userId;
 
+    private String funcType;
+
     public Integer getPaperType() {
         return paperType;
     }
@@ -62,4 +64,13 @@ public class ExamPaperPageVM extends BasePage {
     public void setUserId(String userId) {
         this.userId = userId;
     }
+
+
+    public String getFuncType() {
+        return funcType;
+    }
+
+    public void setFuncType(String funcType) {
+        this.funcType = funcType;
+    }
 }