|
@@ -10,7 +10,7 @@
|
10
|
10
|
select s.*,ifnull(ep.pnum,0)pnum,ifnull(ep.pscore,0)pscore,ep.correcttype
|
11
|
11
|
from (select s.esid,s.subjectid,s.sdate,s.begintime,s.endtime,s.esstate,s.subjectname
|
12
|
12
|
,group_concat(u.username separator '、')majorname
|
13
|
|
- ,#{classnum}-count(DISTINCT ei.classid) einum
|
|
13
|
+ ,count(DISTINCT ei.classid) einum
|
14
|
14
|
from e_subject s left join e_subject_invigilate ei on ei.esid=s.esid
|
15
|
15
|
left join t_user u on u.userid=ei.teacherid and ei.majored=1
|
16
|
16
|
where s.examid=#{examid} group by s.esid)s left join e_paper ep on s.esid = ep.esid
|