|
@@ -120,13 +120,14 @@
|
120
|
120
|
<result property="userscore" column="userscore"></result>
|
121
|
121
|
<collection property="questions" ofType="com.xhkjedu.sstudy.vo.paper.PaperTeacherReportVo">
|
122
|
122
|
<result property="qorder" column="qorder"></result>
|
|
123
|
+ <result property="qn" column="qn"></result>
|
123
|
124
|
<result property="correctrate" column="correctrate"></result>
|
124
|
125
|
<result property="ctype" column="ctype"></result>
|
125
|
126
|
</collection>
|
126
|
127
|
</resultMap>
|
127
|
128
|
<select id="getStudentScantron" resultMap="scantronResult">
|
128
|
129
|
select p.papername,ps.papernum,truncate(ps.userscore*100/ps.paperscore,2)scorerate,#{paper.papertype} papertype
|
129
|
|
- ,ps.psid,ps.stoptime,ps.costtime,q.qorder,truncate(q.stuscore*100/q.qscore,2)correctrate,tq.ctype
|
|
130
|
+ ,ps.psid,ps.stoptime,ps.costtime,q.qorder,q.qn,truncate(q.stuscore*100/q.qscore,2)correctrate,tq.ctype
|
130
|
131
|
,(select count(*)+1 from t_paper_student ps1
|
131
|
132
|
where ps1.paperid=ps.paperid and ps1.userscore>ps.userscore)rank,ps.paperscore,ps.userscore
|
132
|
133
|
from t_paper_student ps left join t_paper p on ps.paperid = p.paperid
|
|
@@ -157,7 +158,9 @@
|
157
|
158
|
<result property="qscore" column="qscore"></result>
|
158
|
159
|
<result property="avgtime" column="avgtime"></result>
|
159
|
160
|
<result property="mintime" column="mintime"></result>
|
|
161
|
+ <result property="mqtypename" column="mqtypename"></result>
|
160
|
162
|
<collection property="students" ofType="com.xhkjedu.sstudy.vo.paper.PStudentVo">
|
|
163
|
+ <result property="studentid" column="studentid"></result>
|
161
|
164
|
<result property="studentname" column="studentname"></result>
|
162
|
165
|
<result property="stoptime" column="answertime"></result>
|
163
|
166
|
<result property="costtime" column="costtime"></result>
|
|
@@ -167,9 +170,11 @@
|
167
|
170
|
</resultMap>
|
168
|
171
|
<!--20220421修改获取提交作业的学生未基准-->
|
169
|
172
|
<select id="getQuestionDetail" resultMap="questionDetailResult">
|
170
|
|
- select tq.qtypename,q.qscore,q.answertime,q.costtime,q.stuscore,q.answered,u.username studentname
|
|
173
|
+ select tq.qtypename,q.qscore,q.answertime,q.costtime,q.stuscore,q.answered,q.studentid,u.username studentname
|
171
|
174
|
<if test="question.qctype==1 or question.qctype==3">
|
|
175
|
+ ,mq.qtypename mqtypename
|
172
|
176
|
from t_paper_student_question q left join t_question tq on q.questionid=tq.questionid
|
|
177
|
+ left join t_question mq on tq.questionpid=mq.questionid
|
173
|
178
|
</if>
|
174
|
179
|
<if test="question.qctype==2">
|
175
|
180
|
from t_paper_student_scantron q left join t_paper_scantron tq on q.pscaid=tq.pscaid
|
|
@@ -179,6 +184,37 @@
|
179
|
184
|
where q.paperid=#{question.paperid} and q.qorder=#{question.qorder} and q.classid=#{question.classid} and ps.psstate>0
|
180
|
185
|
order by q.stuscore desc,convert(u.username using gbk)
|
181
|
186
|
</select>
|
|
187
|
+
|
|
188
|
+ <!--<resultMap id="questionDetailResult" type="java.util.Map">
|
|
189
|
+ <result property="qtypename" column="qtypename"></result>
|
|
190
|
+ <result property="qscore" column="qscore"></result>
|
|
191
|
+ <result property="mqtypename" column="mqtypename"></result>
|
|
192
|
+ <collection property="students" ofType="java.util.Map" javaType="java.util.List">
|
|
193
|
+ <result property="studentid" column="studentid"></result>
|
|
194
|
+ <result property="studentname" column="studentname"></result>
|
|
195
|
+ <result property="stoptime" column="answertime"></result>
|
|
196
|
+ <result property="costtime" column="costtime"></result>
|
|
197
|
+ <result property="scorerate" column="stuscore"></result>
|
|
198
|
+ <result property="pschecked" column="answered"></result>
|
|
199
|
+ </collection>
|
|
200
|
+ </resultMap>
|
|
201
|
+ <!–20220421修改获取提交作业的学生未基准–>
|
|
202
|
+ <select id="getQuestionDetail" resultMap="questionDetailResult">
|
|
203
|
+ select tq.qtypename,q.qscore,q.studentid,q.answertime,q.costtime,q.stuscore,q.answered,u.username studentname
|
|
204
|
+ <if test="question.qctype==1 or question.qctype==3">
|
|
205
|
+ ,mq.qtypename mqtypename
|
|
206
|
+ from t_paper_student_question q left join t_question tq on q.questionid=tq.questionid
|
|
207
|
+ left join t_question mq on tq.questionid=mq.questionid
|
|
208
|
+ </if>
|
|
209
|
+ <if test="question.qctype==2">
|
|
210
|
+ from t_paper_student_scantron q left join t_paper_scantron tq on q.pscaid=tq.pscaid
|
|
211
|
+ </if>
|
|
212
|
+ left join t_user u on q.studentid=u.userid
|
|
213
|
+ left join t_paper_student ps on q.paperid=ps.paperid and q.studentid=ps.studentid
|
|
214
|
+ where q.paperid=#{question.paperid} and q.qorder=#{question.qorder} and q.classid=#{question.classid} and ps.psstate>0
|
|
215
|
+ order by q.stuscore desc,convert(u.username using gbk)
|
|
216
|
+ </select>-->
|
|
217
|
+
|
182
|
218
|
<!--作业发布的人数-->
|
183
|
219
|
<select id="getPaperstudentNum" resultType="java.lang.Integer">
|
184
|
220
|
select count(*) from t_paper_student where paperid=#{paperid} and classid=#{classid}
|