|
@@ -12,7 +12,7 @@
|
12
|
12
|
from e_paper p left join e_paper_qtype_question pq on p.epid = pq.epid
|
13
|
13
|
left join e_paper_correctclass pc on p.epid = pc.epid
|
14
|
14
|
left join e_paper_student_question psq on psq.epid = pc.epid and psq.classid=pc.classid and psq.qorder=pq.qorder
|
15
|
|
- where pc.teacherid=#{teacherid} and pq.ctype in(3,14,15) group by p.epid
|
|
15
|
+ where pc.teacherid=#{teacherid} and pq.ctype in(3,13,14,15) group by p.epid
|
16
|
16
|
union
|
17
|
17
|
select p.esid,p.epid,group_concat(distinct concat(pq.qn,'_',pq.eptqid) order by pq.eptqid)qns
|
18
|
18
|
,0 classids
|
|
@@ -35,7 +35,7 @@
|
35
|
35
|
from e_paper p left join e_paper_qtype_question pq on p.epid = pq.epid
|
36
|
36
|
left join e_paper_correctclass pc on p.epid = pc.epid
|
37
|
37
|
left join e_paper_student_question psq on psq.epid = pc.epid and psq.classid=pc.classid and psq.qorder=pq.qorder
|
38
|
|
- where pc.teacherid=#{teacherid} and pq.ctype in(3,14,15) group by p.epid
|
|
38
|
+ where pc.teacherid=#{teacherid} and pq.ctype in(3,13,14,15) group by p.epid
|
39
|
39
|
union
|
40
|
40
|
select p.esid,p.epid,group_concat(distinct concat(pq.qn,'_',pq.eptqid) order by pq.eptqid)qns
|
41
|
41
|
,0 classids
|