Browse Source

完善对接接口

ywx
王宁 3 weeks ago
parent
commit
75d6c85abb

+ 2
- 1
smarking/src/main/resources/mapper/exam/MsClassStudentMapper.xml View File

@@ -50,9 +50,10 @@
50 50
     </select>
51 51
     <!--考生信息列表-->
52 52
     <select id="listAll" resultType="java.util.Map">
53
-        select es.mcsid,es.examid,es.classid,es.subjectid,u.username,u.examno,u.usersex,ec.classname
53
+        select es.mcsid,es.examid,es.classid,es.subjectid,u.username,u.examno,u.usersex,ec.classname,ps.mpsid,ps.sstate
54 54
         from ms_class_student es left join t_user u on es.studentid = u.userid
55 55
         left join ms_class ec on es.classid=ec.classid and es.examid=ec.examid and es.subjectid=ec.subjectid
56
+        left join ms_paper_student ps on es.examid=ps.examid and es.subjectid=ps.subjectid and es.studentid=ps.studentid
56 57
         where es.examid=#{cs.examid} and ec.schoolid=#{cs.schoolid}
57 58
         <if test="cs.classid!=null and cs.classid!=0">
58 59
             and es.classid=#{cs.classid}

+ 1
- 1
smarking/src/main/resources/mapper/exam/MsSubjectMapper.xml View File

@@ -134,7 +134,7 @@
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.ptstate,s.pbstate,s.checkset,s.checkstate,s.invigilatestate,p.mpid,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,p.mpid,p.yjstate,3 as correcttype
138 138
             ,count(distinct ps.mpsid) as stunum
139 139
             ,count(distinct if(ps.batchid is not null,ps.mpsid,null)) as scannum
140 140
             ,count(distinct pb.mblockid) as blocknum

Loading…
Cancel
Save