|
@@ -12,9 +12,8 @@
|
12
|
12
|
<!--考试下所有科目-->
|
13
|
13
|
<select id="listExamSubjects" resultType="com.xhkjedu.sexam.vo.exam.ESubjectVo">
|
14
|
14
|
select es.esid,es.subjectid,es.sdate,es.begintime,es.endtime,es.teacherid,
|
15
|
|
- u.username teachername,es.esstate,s.subjectname
|
|
15
|
+ u.username teachername,es.esstate,es.subjectname
|
16
|
16
|
from e_subject es left join t_user u on es.teacherid=u.userid
|
17
|
|
- left join t_subject s on es.subjectid=s.subjectid
|
18
|
17
|
where es.examid=#{examid} order by s.subjectorder
|
19
|
18
|
</select>
|
20
|
19
|
|
|
@@ -29,9 +28,8 @@
|
29
|
28
|
</update>
|
30
|
29
|
<!--考试科目列表-->
|
31
|
30
|
<select id="listSubject" resultType="java.util.Map">
|
32
|
|
- select es.subjectid,s.subjectname,es.sdate,es.begintime,es.endtime,es.teacherid,u.username
|
33
|
|
- from e_subject es left join t_subject s on es.subjectid=s.subjectid
|
34
|
|
- left join t_user u on es.teacherid=u.userid
|
|
31
|
+ select es.subjectid,es.subjectname,es.sdate,es.begintime,es.endtime,es.teacherid,u.username
|
|
32
|
+ from e_subject es left join t_user u on es.teacherid=u.userid
|
35
|
33
|
where examid=#{examid}
|
36
|
34
|
</select>
|
37
|
35
|
<!--根据考试科目id获取考试id-->
|
|
@@ -40,25 +38,23 @@
|
40
|
38
|
</select>
|
41
|
39
|
<!--考试科目设置列表-->
|
42
|
40
|
<select id="listSubjectSet" resultType="java.util.Map">
|
43
|
|
- select es.subjectid,s.subjectname,es.sdate,es.begintime,es.endtime,es.esstate
|
|
41
|
+ select es.subjectid,es.subjectname,es.sdate,es.begintime,es.endtime,es.esstate
|
44
|
42
|
,ep.correcttype
|
45
|
43
|
,(select count(*) from e_subject_invigilate ei where ei.esid=es.esid)jkjsnum
|
46
|
44
|
,count(case when eps.sstate=3 then eps.epsid else null end)qknum
|
47
|
45
|
,count(case when eps.sstate=2 then eps.epsid else null end)tjnum
|
48
|
46
|
,ifnull(truncate(count(case when eps.checked=2 then eps.epsid else null end)*100/
|
49
|
47
|
count(case when eps.sstate=2 then eps.epsid else null end),0),0)pyrate
|
50
|
|
- from e_subject es left join t_subject s on es.subjectid=s.subjectid
|
51
|
|
- left join e_paper ep on es.esid = ep.esid
|
|
48
|
+ from e_subject es left join e_paper ep on es.esid = ep.esid
|
52
|
49
|
left join e_paper_student eps on ep.epid = eps.epid
|
53
|
50
|
where es.examid=#{examid}
|
54
|
51
|
group by es.esid
|
55
|
52
|
</select>
|
56
|
53
|
<!--考试科目阅卷设置列表-->
|
57
|
54
|
<select id="listSubjectCSet" resultType="java.util.Map">
|
58
|
|
- select es.subjectid,s.subjectname,es.sdate,es.begintime,es.endtime,es.esstate
|
|
55
|
+ select es.subjectid,es.subjectname,es.sdate,es.begintime,es.endtime,es.esstate
|
59
|
56
|
,ep.ptype,ep.epid,ep.pnum,ep.pscore,ep.correcttype
|
60
|
|
- from e_subject es left join t_subject s on es.subjectid=s.subjectid
|
61
|
|
- left join e_paper ep on es.esid = ep.esid
|
|
57
|
+ from e_subject es left join e_paper ep on es.esid = ep.esid
|
62
|
58
|
where es.examid=#{examid}
|
63
|
59
|
</select>
|
64
|
60
|
<!--根据考试科目id获取考试科目基本信息-->
|