|
@@ -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
|
<!--获取考试科目时间信息-->
|