|
@@ -7,13 +7,13 @@
|
7
|
7
|
</delete>
|
8
|
8
|
<!--监考设置列表-->
|
9
|
9
|
<select id="listSubject" resultType="java.util.Map">
|
10
|
|
- select s.esid,s.subjectid,s.sdate,s.begintime,s.endtime,s.esstate,s.subjectname
|
11
|
|
- ,ifnull(ep.pnum,0)pnum,ifnull(ep.pscore,0)pscore,ep.correcttype
|
12
|
|
- ,(select group_concat(distinct u.username separator '、')
|
13
|
|
- from e_subject_invigilate ei left join t_user u on ei.teacherid = u.userid
|
14
|
|
- where ei.esid=s.esid and ei.majored=1)majorname
|
15
|
|
- from e_subject s left join e_paper ep on s.esid = ep.esid
|
16
|
|
- where s.examid=#{examid}
|
|
10
|
+ select s.*,ifnull(ep.pnum,0)pnum,ifnull(ep.pscore,0)pscore,ep.correcttype
|
|
11
|
+ from (select s.esid,s.subjectid,s.sdate,s.begintime,s.endtime,s.esstate,s.subjectname
|
|
12
|
+ ,group_concat(u.username separator '、')majorname
|
|
13
|
+ ,#{classnum}-count(DISTINCT ei.classid) einum
|
|
14
|
+ from e_subject s left join e_subject_invigilate ei on ei.esid=s.esid
|
|
15
|
+ left join t_user u on u.userid=ei.teacherid and ei.majored=1
|
|
16
|
+ where s.examid=#{examid} group by s.esid)s left join e_paper ep on s.esid = ep.esid
|
17
|
17
|
</select>
|
18
|
18
|
<!--考试监考人-->
|
19
|
19
|
<select id="listByEsId" resultType="java.util.Map">
|