|
@@ -306,7 +306,6 @@
|
306
|
306
|
</collection>
|
307
|
307
|
</resultMap>
|
308
|
308
|
<select id="listStudentSubjectErrorQues" resultMap="listStudentSubjectErrorQues">
|
309
|
|
- <if test="showrank!=0">
|
310
|
309
|
select sq.subjectid,st.subjectname,p.ptype,sq.epsqid,sq.eptqid,q.questionid,q.qlevel,q.questionpid
|
311
|
310
|
from e_paper_student_question sq
|
312
|
311
|
left join t_question q on q.questionid=sq.questionid
|
|
@@ -314,20 +313,20 @@
|
314
|
313
|
left join e_paper p on sq.epid=p.epid
|
315
|
314
|
left join e_subject st on p.esid=st.esid
|
316
|
315
|
where sq.examid=#{examid} and sq.studentid=#{studentid} and st.pstate=2 and sq.stuscore < sq.qscore group by sq.epsqid order by st.esid
|
317
|
|
- </if>
|
318
|
|
- <if test="showrank==0">
|
319
|
|
- select st.subjectid,st.subjectname,p.ptype,0 num
|
320
|
|
- from e_subject st left join e_paper p on st.esid=p.esid
|
321
|
|
- where st.examid=#{examid} and st.pstate=2
|
322
|
|
- </if>
|
323
|
316
|
</select>
|
324
|
317
|
<!--学生报告-错题集-学生科目下错题(题库)-->
|
325
|
318
|
<select id="listStudentErrorQuestionsForTk" resultMap="listStudentQues">
|
326
|
|
- select sq.epsqid,sq.eptqid,sq.ctype,sq.questionid,sq.qn,sq.qorder,sq.qscore,sq.stuscore,sq.answered,
|
|
319
|
+ select sq.epsqid,sq.eptqid,sq.ctype,sq.questionid,sq.qn,sq.qorder,sq.qscore,sq.answered,
|
327
|
320
|
sq.answertype,sq.stuanswer,sq.stuanswertxt,pq.answer,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.hashear,q.hearfile,
|
328
|
321
|
q.qlevel,q.sorder,q.complexity,q.questionpid,mq.questionid mquestionid,mq.qstem mqstem,mq.qoption mqoption,mq.qanswer mqanswer,
|
329
|
322
|
mq.qanalyze mqanalyze,mq.hashear mhashear,mq.hearfile mhearfile,mq.qlevel mqlevel,mq.ctype mctype,mq.snum msnum,
|
330
|
|
- mq.complexity mcomplexity,cq.classavgscore,cq.gradeavgscore
|
|
323
|
+ mq.complexity mcomplexity
|
|
324
|
+ <if test="showrank==0">
|
|
325
|
+ ,0 stuscore,0 classavgscore,0 gradeavgscore
|
|
326
|
+ </if>
|
|
327
|
+ <if test="showrank!=0">
|
|
328
|
+ ,sq.stuscore,cq.classavgscore,cq.gradeavgscore
|
|
329
|
+ </if>
|
331
|
330
|
from e_paper_student_question sq left join t_question q on sq.questionid=q.questionid
|
332
|
331
|
left join t_question mq on q.questionpid=mq.questionid
|
333
|
332
|
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)
|
|
@@ -338,9 +337,14 @@
|
338
|
337
|
|
339
|
338
|
<!--学生报告-错题集-学生科目下错题(附件)-->
|
340
|
339
|
<select id="listStudentErrorQuestionsForFj" resultType="java.util.Map">
|
341
|
|
- select sq.epsqid,sq.eptqid,sq.ctype,sq.qn,sq.qorder,sq.qscore,sq.stuscore,sq.answered,
|
342
|
|
- sq.answertype,sq.stuanswer,sq.stuanswertxt,q.qtypeid,q.qtypename,q.optionnum,q.answer,
|
343
|
|
- cq.classavgscore,cq.gradeavgscore
|
|
340
|
+ select sq.epsqid,sq.eptqid,sq.ctype,sq.qn,sq.qorder,sq.qscore,sq.answered,
|
|
341
|
+ sq.answertype,sq.stuanswer,sq.stuanswertxt,q.qtypeid,q.qtypename,q.optionnum,q.answer
|
|
342
|
+ <if test="showrank==0">
|
|
343
|
+ ,0 stuscore,0 classavgscore,0 gradeavgscore
|
|
344
|
+ </if>
|
|
345
|
+ <if test="showrank!=0">
|
|
346
|
+ ,sq.stuscore,cq.classavgscore,cq.gradeavgscore
|
|
347
|
+ </if>
|
344
|
348
|
from e_paper_student_question sq left join e_rclass_question cq on sq.eptqid=cq.eptqid and sq.classid=cq.classid
|
345
|
349
|
left join e_paper_qtype_question q on sq.eptqid=q.eptqid
|
346
|
350
|
where sq.examid=#{examid} and sq.subjectid=#{subjectid} and sq.studentid=#{studentid} and sq.stuscore < sq.qscore
|