|
@@ -147,4 +147,89 @@
|
147
|
147
|
where q.epsqid=#{epsqid}
|
148
|
148
|
</select>
|
149
|
149
|
|
|
150
|
+ <!--学生作答试卷题库-->
|
|
151
|
+ <resultMap id="qtypesQuestion" type="java.util.Map">
|
|
152
|
+ <result column="ctype" property="ctype"></result>
|
|
153
|
+ <result column="eptname" property="eptname"></result>
|
|
154
|
+ <result column="eptnum" property="eptnum"></result>
|
|
155
|
+ <result column="eptorder" property="eptorder"></result>
|
|
156
|
+ <result column="eptscore" property="eptscore"></result>
|
|
157
|
+ <collection property="questions" ofType="java.util.Map" javaType="java.util.List">
|
|
158
|
+ <result column="epsqid" property="epsqid"></result>
|
|
159
|
+ <result column="questionid" property="questionid"></result>
|
|
160
|
+ <result column="score" property="score"></result>
|
|
161
|
+ <result column="qorder" property="qorder"></result>
|
|
162
|
+ <result column="qn" property="qn"></result>
|
|
163
|
+ <result column="answer" property="answer"></result>
|
|
164
|
+ <result column="stuanswer" property="stuanswer"></result>
|
|
165
|
+ <result column="stuscore" property="stuscore"></result>
|
|
166
|
+ <result column="answered" property="answered"></result>
|
|
167
|
+ <result column="answertype" property="answertype"></result>
|
|
168
|
+ <result column="stuanswer" property="stuanswer"></result>
|
|
169
|
+ <result column="stuanswertxt" property="stuanswertxt"></result>
|
|
170
|
+ <result column="eptqid" property="eptqid"></result>
|
|
171
|
+ <result column="qtypeid" property="qtypeid"></result>
|
|
172
|
+ <result column="qtypename" property="qtypename"></result>
|
|
173
|
+ <result column="qctype" property="ctype"></result>
|
|
174
|
+ <result column="qstem" property="qstem"></result>
|
|
175
|
+ <result column="hearfile" property="hearfile"></result>
|
|
176
|
+ <result column="qoption" property="qoption"></result>
|
|
177
|
+ <result column="qlevel" property="qlevel"></result>
|
|
178
|
+ <result column="sorder" property="sorder"></result>
|
|
179
|
+ <result column="snum" property="snum"></result>
|
|
180
|
+ <result column="questionpid" property="questionpid"></result>
|
|
181
|
+ <result column="mquestionid" property="mquestionid"></result>
|
|
182
|
+ <result column="mqstem" property="mqstem"></result>
|
|
183
|
+ <result column="mqtypeid" property="mqtypeid"></result>
|
|
184
|
+ <result column="mqtypename" property="mqtypename"></result>
|
|
185
|
+ <result column="mctype" property="mctype"></result>
|
|
186
|
+ <result column="mhearfile" property="mhearfile"></result>
|
|
187
|
+ </collection>
|
|
188
|
+ </resultMap>
|
|
189
|
+ <select id="listQStuQuestionScore" resultMap="qtypesQuestion">
|
|
190
|
+ select pt.ctype,pt.eptname,pt.eptnum,pt.eptorder,pt.eptscore,
|
|
191
|
+ psq.epsqid,psq.questionid,psq.qorder,psq.qn,ptq.score,ptq.answer,psq.answered,psq.answertype,psq.stuanswer,
|
|
192
|
+ psq.stuanswertxt,psq.eptqid,psq.stuscore,q.qstem,q.qoption,q.ctype qctype,q.hearfile,q.qtypeid,
|
|
193
|
+ q.qtypename,q.qlevel,q.snum,q.sorder,q.questionpid,mq.questionid mquestionid,mq.qstem mqstem,
|
|
194
|
+ mq.qoption mqoption,mq.ctype mctype,mq.qtypeid mqtypeid,mq.qtypename mqtypename,mq.hearfile mhearfile
|
|
195
|
+ from e_paper_student_question psq left join e_paper_qtype_question ptq on psq.eptqid=ptq.eptqid
|
|
196
|
+ left join e_paper_qtype pt on pt.eptid=ptq.eptid
|
|
197
|
+ left join t_question q on psq.questionid=q.questionid
|
|
198
|
+ left join t_question mq on q.questionpid=mq.questionid
|
|
199
|
+ where psq.epsid=#{epsid} order by pt.eptorder,psq.qorder
|
|
200
|
+ </select>
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+ <!--学生作答得分试卷附件-->
|
|
204
|
+ <resultMap id="fjtypeQuestions" type="java.util.Map">
|
|
205
|
+ <result column="ctype" property="ctype"></result>
|
|
206
|
+ <result column="eptname" property="eptname"></result>
|
|
207
|
+ <result column="eptnum" property="eptnum"></result>
|
|
208
|
+ <result column="eptorder" property="eptorder"></result>
|
|
209
|
+ <result column="eptscore" property="eptscore"></result>
|
|
210
|
+ <collection property="questions" ofType="java.util.Map" javaType="java.util.Map">
|
|
211
|
+ <result column="epsqid" property="epsqid"></result>
|
|
212
|
+ <result column="score" property="score"></result>
|
|
213
|
+ <result column="qorder" property="qorder"></result>
|
|
214
|
+ <result column="qn" property="qn"></result>
|
|
215
|
+ <result column="eptqid" property="eptqid"></result>
|
|
216
|
+ <result column="qtypename" property="qtypename"></result>
|
|
217
|
+ <result column="qctype" property="ctype"></result>
|
|
218
|
+ <result column="optionnum" property="optionnum"></result>
|
|
219
|
+ <result column="answer" property="answer"></result>
|
|
220
|
+ <result column="stuscore" property="stuscore"></result>
|
|
221
|
+ <result column="answered" property="answered"></result>
|
|
222
|
+ <result column="answertype" property="answertype"></result>
|
|
223
|
+ <result column="stuanswer" property="stuanswer"></result>
|
|
224
|
+ <result column="stuanswertxt" property="stuanswertxt"></result>
|
|
225
|
+ </collection>
|
|
226
|
+ </resultMap>
|
|
227
|
+ <select id="listFjStuQuestionScore" resultMap="fjtypeQuestions">
|
|
228
|
+ select pt.ctype,pt.eptname,pt.eptnum,pt.eptorder,pt.eptscore,psq.epsqid,psq.qn,psq.qorder,psq.answered,psq.answertype,
|
|
229
|
+ psq.stuanswer,psq.stuanswertxt,psq.eptqid,psq.qscore score,psq.stuscore,pq.answer,pq.optionnum,pq.ctype qctype,pq.qtypename
|
|
230
|
+ from e_paper_student_question psq left join e_paper_qtype_question pq on psq.eptqid=pq.eptqid
|
|
231
|
+ left join e_paper_qtype pt on pq.eptid=pt.eptid
|
|
232
|
+ where psq.epsid=#{epsid} order by pt.eptorder, psq.qorder
|
|
233
|
+ </select>
|
|
234
|
+
|
150
|
235
|
</mapper>
|