Просмотр исходного кода

班级错题集

tags/正式版本
雍文秀 2 лет назад
Родитель
Сommit
a7b85549ca
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2
    2
      sstudy/src/main/resources/mapper/question/QuestionClassMapper.xml

+ 2
- 2
sstudy/src/main/resources/mapper/question/QuestionClassMapper.xml Просмотреть файл

@@ -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">

Загрузка…
Отмена
Сохранить