Browse Source

班级错题集

tags/正式版本
雍文秀 2 years ago
parent
commit
a7b85549ca
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      sstudy/src/main/resources/mapper/question/QuestionClassMapper.xml

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

@@ -3,13 +3,13 @@
3 3
 <mapper namespace="com.xhkjedu.sstudy.mapper.question.QuestionClassMapper">
4 4
     <!--作业统计按题-->
5 5
     <select id="getQuestionAnalyze" resultType="com.xhkjedu.sstudy.model.question.TQuestionClass">
6
-        select ptq.questionid,ptq.ptqorder qorder,ptq.ptqscore qscore,sum(ifnull(psq.stuscore,0))stuscore,ptq.schoolid,q.qtypeid
6
+        select ptq.questionpid,ptq.ptqorder qorder,ptq.mscore qscore,sum(ifnull(psq.stuscore,0))stuscore,ptq.schoolid,ptq.mqtypeid qtypeid
7 7
         ,(select count(*) from t_paper_student ps where ps.paperid=#{paperid} and ps.classid=#{classid}
8 8
         <if test="qctype==3">and locate(concat('"',ptq.questionid,'"'),ps.questionids)>0</if>)stunum
9 9
         from t_paper_qtype_question ptq left join t_question q on ptq.questionid=q.questionid
10 10
         left join t_paper_student_question psq on ptq.paperid = psq.paperid and ptq.questionid=psq.questionid and psq.classid=#{classid}
11 11
         where ptq.paperid=#{paperid}
12
-        group by ptq.questionid having stunum!=0 order by ptq.ptqorder
12
+        group by ptq.ptqorder having stunum!=0 order by ptq.ptqorder
13 13
     </select>
14 14
     <!--答题卡作业统计按题-->
15 15
     <select id="getSQuestionAnalyze" resultType="com.xhkjedu.sstudy.model.question.TQuestionClass">

Loading…
Cancel
Save