Browse Source

学生已结束列表

tags/正式版本
王宁 2 years ago
parent
commit
6b2e4c594f

+ 12
- 16
sexam/src/main/resources/mapper/paperstudent/EPaperStudentMapper.xml View File

@@ -21,26 +21,22 @@
21 21
         <result property="examtype" column="examtype"></result>
22 22
         <result property="exammode" column="exammode"></result>
23 23
         <result property="examcomm" column="examcomm"></result>
24
-        <collection property="subjects" ofType="java.util.Map" javaType="java.util.List">
25
-            <result property="esid" column="esid"></result>
26
-            <result property="subjectid" column="subjectid"></result>
27
-            <result property="subjectname" column="subjectname"></result>
28
-            <result property="sdate" column="sdate"></result>
29
-            <result property="begintime" column="begintime"></result>
30
-            <result property="endtime" column="endtime"></result>
31
-            <result property="epsid" column="epsid"></result>
32
-            <result property="ptype" column="ptype"></result>
24
+        <collection property="subjects" ofType="java.util.Map" javaType="java.util.List"
25
+                    select="listExamSubjects" column="{examid=examid,studentid=studentid}">
33 26
         </collection>
34 27
     </resultMap>
35 28
     <!--学生已结束考试列表-->
36 29
     <select id="listExamsEndForStudent" resultMap="examsEndForStu">
37
-        select e.examid,e.examname,e.examdate,e.gradeid,e.examtype,e.exammode,e.examcomm,
38
-        es.esid,es.subjectid,es.subjectname,es.sdate,es.begintime,es.endtime,eps.epsid
39
-        ,(select ep.ptype from e_paper ep where ep.esid=es.esid)ptype
40
-        from e_subject es left join e_base e on es.examid=e.examid
41
-        left join e_paper_student eps on es.esid=eps.esid
42
-        where e.deleted=1 and eps.studentid=#{studentid} and e.examstate>=2 group by es.esid
43
-        order by e.examdate desc,es.sdate desc,es.begintime desc
30
+        select e.examid,e.examname,e.examdate,e.gradeid,e.examtype,e.exammode,e.examcomm,#{studentid} as studentid
31
+        from e_base e left join e_paper_student eps on e.examid=eps.examid
32
+        where e.deleted=1 and eps.studentid=#{studentid} and e.examstate>=2
33
+        group by e.examid order by e.examdate desc
34
+    </select>
35
+    <select id="listExamSubjects" resultType="java.util.Map">
36
+        select es.esid,es.subjectid,es.subjectname,es.sdate,es.begintime,es.endtime,eps.epsid
37
+             ,(select ep.ptype from e_paper ep where ep.esid=es.esid)ptype
38
+        from e_subject es left join e_paper_student eps on es.esid=eps.esid
39
+        where eps.studentid=#{studentid} and es.examid=#{examid} order by es.begintime
44 40
     </select>
45 41
 
46 42
     <!--获取考试科目时间信息-->

+ 1
- 1
sexam/src/main/resources/mapper/report/EReportClassMapper.xml View File

@@ -117,7 +117,7 @@
117 117
         group by e.examid order by e.examdate desc
118 118
     </select>
119 119
     <select id="listExamSubjects" resultType="java.util.Map">
120
-        select esid,subjectid,subjectname from e_subject where examid=#{examid} and pstate=2 order by esid
120
+        select esid,subjectid,subjectname from e_subject where examid=#{examid} and pstate=2 order by begintime
121 121
     </select>
122 122
 
123 123
     <!--考试教师权限下班级-->

+ 1
- 1
sexam/src/main/resources/mapper/report/EReportSchoolMapper.xml View File

@@ -80,7 +80,7 @@
80 80
         order by e.examdate desc
81 81
     </select>
82 82
     <select id="listExamSubjects" resultType="java.util.Map">
83
-        select esid,subjectid,subjectname from e_subject where examid=#{examid} and pstate=2 order by esid
83
+        select esid,subjectid,subjectname from e_subject where examid=#{examid} and pstate=2 order by begintime
84 84
     </select>
85 85
     <!--行为分析-班级-->
86 86
     <select id="listXwBjByExamId" resultType="java.util.Map">

Loading…
Cancel
Save