|
@@ -134,7 +134,8 @@
|
134
|
134
|
<!--单科设置信息-->
|
135
|
135
|
<select id="getSet" resultType="java.util.Map">
|
136
|
136
|
<if test="exammode!=3">
|
137
|
|
- select s.msid,s.subjectid,s.subjectname,s.sdate,s.begintime,s.endtime,s.pstate,s.checkset,s.checkstate,s.invigilatestate,3 as correcttype
|
|
137
|
+ select s.msid,s.subjectid,s.subjectname,s.sdate,s.begintime,s.endtime,s.pstate,s.ptstate,s.pbstate,s.checkset,s.checkstate,s.invigilatestate,3 as correcttype
|
|
138
|
+ ,count(distinct ps.mpsid) as stunum
|
138
|
139
|
,count(distinct if(ps.batchid is not null,ps.mpsid,null)) as scannum
|
139
|
140
|
,count(distinct pb.mblockid) as blocknum
|
140
|
141
|
,count(distinct if(tb.localcoor is null or tb.localcoor='',tb.mblockid,null)) as wkxnum
|
|
@@ -151,7 +152,7 @@
|
151
|
152
|
where s.examid=#{examid} and s.subjectid=#{subjectid}
|
152
|
153
|
</if>
|
153
|
154
|
<if test="exammode==3">
|
154
|
|
- select s.msid,s.subjectid,s.subjectname,s.sdate,s.begintime,s.endtime,s.pstate,s.checkset,s.checkstate,s.invigilatestate,p.correcttype
|
|
155
|
+ select s.msid,s.subjectid,s.subjectname,s.sdate,s.begintime,s.endtime,s.pstate,s.ptstate,s.pbstate,s.checkset,s.checkstate,s.invigilatestate,p.correcttype
|
155
|
156
|
,count(distinct if(pc.dispenseway!=0,pc.mblockid,null)) as ysznum
|
156
|
157
|
,if(p.correcttype=1,(select count(*) from ms_class c where c.examid=s.examid and c.subjectid=s.subjectid)
|
157
|
158
|
,count(distinct if(pb.qtype=2,pb.mptqid,null)))-count(distinct if(pc.dispenseway!=0,pc.mblockid,null)) as wsznum
|