|
@@ -237,7 +237,7 @@
|
237
|
237
|
mq.complexity mcomplexity,cq.classavgscore,cq.gradeavgscore
|
238
|
238
|
from e_paper_student_question sq left join t_question q on sq.questionid=q.questionid
|
239
|
239
|
left join t_question mq on q.questionpid=mq.questionid
|
240
|
|
- left join e_rclass_question cq on (sq.questionid=cq.questionid or mq.questionid=cq.questionid)
|
|
240
|
+ left join e_rclass_question cq on sq.epid=cq.epid and sq.classid=cq.classid and (sq.questionid=cq.questionid or mq.questionid=cq.questionid)
|
241
|
241
|
left join e_paper_qtype_question pq on sq.eptqid=pq.eptqid
|
242
|
242
|
where sq.examid=#{examid} and sq.subjectid=#{subjectid} and sq.studentid=#{studentid} and sq.stuscore < sq.qscore
|
243
|
243
|
GROUP BY sq.epsqid order by sq.qorder,q.sorder
|