|
|
|
|
36
|
from e_subject_invigilate ei left join e_subject es on ei.esid=es.esid
|
36
|
from e_subject_invigilate ei left join e_subject es on ei.esid=es.esid
|
37
|
left join e_base eb on eb.examid = es.examid
|
37
|
left join e_base eb on eb.examid = es.examid
|
38
|
left join e_class ec on eb.examid = ec.examid
|
38
|
left join e_class ec on eb.examid = ec.examid
|
39
|
- where eb.deleted=1 and eb.examstate!=0 and eb.exammode=1 and eb.monitored=1 and es.pstate=#{esstate}
|
|
|
|
|
39
|
+ where eb.deleted=1 and eb.examstate!=0 and eb.exammode=1 and eb.monitored=1
|
40
|
<if test="teacherid!=null and teacherid!=0">
|
40
|
<if test="teacherid!=null and teacherid!=0">
|
41
|
and ei.teacherid=#{teacherid}
|
41
|
and ei.teacherid=#{teacherid}
|
42
|
</if>
|
42
|
</if>
|
43
|
<if test="examid!=null and examid!=0">
|
43
|
<if test="examid!=null and examid!=0">
|
44
|
and es.examid=#{examid}
|
44
|
and es.examid=#{examid}
|
45
|
</if>
|
45
|
</if>
|
|
|
46
|
+ <if test="esstate==1">
|
|
|
47
|
+ and subdate(concat(es.sdate,' ',es.begintime),interval 5 minute)<=now() and es.pstate!=2
|
|
|
48
|
+ </if>
|
|
|
49
|
+ <if test="esstate==2">
|
|
|
50
|
+ and es.pstate=2
|
|
|
51
|
+ </if>
|
46
|
group by es.esid
|
52
|
group by es.esid
|
47
|
)es left join e_paper_student eps on es.esid = eps.esid and find_in_set(eps.classid,es.classids)
|
53
|
)es left join e_paper_student eps on es.esid = eps.esid and find_in_set(eps.classid,es.classids)
|
48
|
group by es.esid
|
54
|
group by es.esid
|