Browse Source

班级错题集,章节关联试题

tags/正式3.10.2
王宁 1 year ago
parent
commit
d00704abec
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      sstudy/src/main/resources/mapper/question/QuestionClassMapper.xml

+ 3
- 2
sstudy/src/main/resources/mapper/question/QuestionClassMapper.xml View File

@@ -41,6 +41,7 @@
41 41
         questionid)a
42 42
         left join t_question_class qc on a.qcid=qc.qcid
43 43
         left join t_paper p on qc.paperid=p.paperid
44
+        left join t_question_director qd on qc.questionid=qd.questionid 
44 45
         where qc.classid=#{question.classid}
45 46
         and qc.createtime>=#{question.starttime}
46 47
         and qc.createtime<=#{question.stoptime}
@@ -48,10 +49,10 @@
48 49
             and p.subjectid=#{question.subjectid}
49 50
         </if>
50 51
         <if test="question.lsbid!=null and question.lsbid!='0'.toString() and question.lsbid!=''">
51
-            and p.lsbid=#{question.lsbid}
52
+            and qd.lsbid=#{question.lsbid}
52 53
         </if>
53 54
         <if test="question.directorid!=null and question.directorid!='0'.toString() and question.directorid!=''">
54
-            and p.directorid=#{question.directorid}
55
+            and qd.directorid=#{question.directorid}
55 56
         </if>
56 57
         <if test="question.qtypeid!=null and question.qtypeid!='0'.toString() and question.qtypeid!=''">
57 58
             <if test="question.qtypeid!='tlt'">and qc.hashear=0 and qc.qtypeid=#{question.qtypeid}</if>

Loading…
Cancel
Save