|
@@ -107,7 +107,7 @@
|
107
|
107
|
order by ps.pschecked,ps.userscore ${paper.fieldorder},convert(u.username using gbk)
|
108
|
108
|
</select>
|
109
|
109
|
<!--获取学生答题卡-->
|
110
|
|
- <resultMap id="scantronResult" type="com.xhkjedu.sstudy.vo.paper.PStudentVo">
|
|
110
|
+ <resultMap id="scantronResult" type="java.util.Map">
|
111
|
111
|
<result property="papername" column="papername"></result>
|
112
|
112
|
<result property="papernum" column="papernum"></result>
|
113
|
113
|
<result property="scorerate" column="scorerate"></result>
|
|
@@ -118,18 +118,25 @@
|
118
|
118
|
<result property="rank" column="rank"></result>
|
119
|
119
|
<result property="paperscore" column="paperscore"></result>
|
120
|
120
|
<result property="userscore" column="userscore"></result>
|
121
|
|
- <collection property="questions" ofType="com.xhkjedu.sstudy.vo.paper.PaperTeacherReportVo">
|
|
121
|
+ <collection property="questions" ofType="java.util.Map" javaType="java.util.List">
|
122
|
122
|
<result property="qorder" column="qorder"></result>
|
123
|
123
|
<result property="qn" column="qn"></result>
|
124
|
124
|
<result property="correctrate" column="correctrate"></result>
|
125
|
|
- <result property="ctype" column="ctype"></result>
|
|
125
|
+ <result property="stuscore" column="stuscore"></result>
|
|
126
|
+ <result property="qscore" column="qscore"></result>
|
|
127
|
+ <result property="qlevel" column="qlevel"></result>
|
|
128
|
+ <result property="questionid" column="questionid"></result>
|
|
129
|
+ <result property="questionpid" column="questionpid"></result>
|
126
|
130
|
</collection>
|
127
|
131
|
</resultMap>
|
128
|
132
|
<select id="getStudentScantron" resultMap="scantronResult">
|
129
|
133
|
select p.papername,ps.papernum,truncate(ps.userscore*100/ps.paperscore,2)scorerate,#{paper.papertype} papertype
|
130
|
|
- ,ps.psid,ps.stoptime,ps.costtime,q.qorder,q.qn,truncate(q.stuscore*100/q.qscore,2)correctrate,tq.ctype
|
|
134
|
+ ,ps.psid,ps.stoptime,ps.costtime,q.qorder,q.qn,truncate(q.stuscore*100/q.qscore,2)correctrate,q.stuscore,q.qscore
|
131
|
135
|
,(select count(*)+1 from t_paper_student ps1
|
132
|
136
|
where ps1.paperid=ps.paperid and ps1.userscore>ps.userscore)rank,ps.paperscore,ps.userscore
|
|
137
|
+ <if test="paper.papertype==1 or paper.papertype==3">
|
|
138
|
+ ,tq.qlevel,tq.questionid,tq.questionpid
|
|
139
|
+ </if>
|
133
|
140
|
from t_paper_student ps left join t_paper p on ps.paperid = p.paperid
|
134
|
141
|
<if test="paper.papertype==1 or paper.papertype==3">
|
135
|
142
|
left join t_paper_student_question q on ps.psid=q.psid
|