|
@@ -5,7 +5,7 @@
|
5
|
5
|
<select id="getQuestionAnalyze" resultType="com.xhkjedu.sstudy.model.question.TQuestionClass">
|
6
|
6
|
select ptq.questionpid questionid,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
|
|
- <if test="qctype==3">and locate(concat('"',ptq.questionid,'"'),ps.questionids)>0</if>)stunum
|
|
8
|
+ <if test="qctype==3">and locate(concat('"',ptq.questionpid,'"'),ps.questionids)>0</if>)stunum
|
9
|
9
|
,(select q.hashear from t_question q where q.questionid=ptq.questionpid)hashear
|
10
|
10
|
from t_paper_qtype_question ptq left join t_paper_student_question psq on ptq.paperid = psq.paperid
|
11
|
11
|
and ptq.questionid=psq.questionid and psq.classid=#{classid}
|