Browse Source

学生报告获取到已结束的科目

tags/正式版本
王宁 2 years ago
parent
commit
4a449cc825

+ 1
- 1
sexam/src/main/resources/mapper/exam/ESubjectMapper.xml View File

99
     <select id="listSubjectAndPnum" resultType="java.util.Map">
99
     <select id="listSubjectAndPnum" resultType="java.util.Map">
100
         select es.subjectid,es.subjectname,es.sdate,es.begintime,es.endtime,es.teacherid,p.pnum,p.ptype,p.pscore
100
         select es.subjectid,es.subjectname,es.sdate,es.begintime,es.endtime,es.teacherid,p.pnum,p.ptype,p.pscore
101
         from e_subject es left join e_paper p on es.esid=p.esid
101
         from e_subject es left join e_paper p on es.esid=p.esid
102
-        where es.examid=#{examid} order by es.esid
102
+        where es.examid=#{examid} and es.pstate=2 order by es.esid
103
     </select>
103
     </select>
104
     <!--考试科目选择列表-->
104
     <!--考试科目选择列表-->
105
     <select id="listSubjectForSel" resultType="java.util.Map">
105
     <select id="listSubjectForSel" resultType="java.util.Map">

+ 3
- 3
sexam/src/main/resources/mapper/report/ERstudentMapper.xml View File

225
         </collection>
225
         </collection>
226
     </resultMap>
226
     </resultMap>
227
     <select id="listStudentSubjectErrorQues" resultMap="listStudentSubjectErrorQues">
227
     <select id="listStudentSubjectErrorQues" resultMap="listStudentSubjectErrorQues">
228
-        select sq.subjectid,s.subjectname,p.ptype,sq.epsqid,sq.eptqid,q.questionid,q.qlevel,q.questionpid
228
+        select sq.subjectid,st.subjectname,p.ptype,sq.epsqid,sq.eptqid,q.questionid,q.qlevel,q.questionpid
229
         from e_paper_student_question sq
229
         from e_paper_student_question sq
230
         left join t_question q on q.questionid=sq.questionid
230
         left join t_question q on q.questionid=sq.questionid
231
-        left join t_subject s on sq.subjectid=s.subjectid
232
         left join t_question mq on q.questionpid=mq.questionid
231
         left join t_question mq on q.questionpid=mq.questionid
233
         left join e_paper p on sq.epid=p.epid
232
         left join e_paper p on sq.epid=p.epid
234
-        where sq.examid=#{examid} and sq.studentid=#{studentid} and sq.stuscore &lt; sq.qscore group by sq.epsqid order by s.subjectorder
233
+        left join e_subject st on p.esid=st.esid
234
+        where sq.examid=#{examid} and sq.studentid=#{studentid} and st.pstate=2 and sq.stuscore &lt; sq.qscore group by sq.epsqid order by st.esid
235
     </select>
235
     </select>
236
     <!--学生报告-错题集-学生科目下错题(题库)-->
236
     <!--学生报告-错题集-学生科目下错题(题库)-->
237
     <select id="listStudentErrorQuestionsForTk" resultMap="listStudentQues">
237
     <select id="listStudentErrorQuestionsForTk" resultMap="listStudentQues">

Loading…
Cancel
Save