|
@@ -61,7 +61,8 @@
|
61
|
61
|
</select>
|
62
|
62
|
<!--根据试题id获取试题信息-->
|
63
|
63
|
<select id="getQuestionById" resultType="com.xhkjedu.sstudy.vo.question.QuestionClassVo">
|
64
|
|
- select q.questionid,q.ctype,q.qstem,q.qoption,q.qtypename,q.count from t_question q where
|
|
64
|
+ select q.questionid,q.ctype,q.qstem,q.qoption,q.qtypename,q.count,q.hashear,q.hearfile
|
|
65
|
+ from t_question q where
|
65
|
66
|
<foreach collection="questionids" item="questionid" index="index" separator="or">
|
66
|
67
|
q.questionid=#{questionid}
|
67
|
68
|
</foreach>
|
|
@@ -76,7 +77,7 @@
|
76
|
77
|
<!--知识点班级错题列表-->
|
77
|
78
|
<select id="pointList" resultType="com.xhkjedu.sstudy.vo.question.QuestionClassVo">
|
78
|
79
|
select qc.qcid,qc.questionid,qc.qscore,qc.avgscore,qc.errorrate,qc.qctype
|
79
|
|
- ,q.ctype,q.qstem,q.qoption,q.qtypeid,q.qtypename,q.count
|
|
80
|
+ ,q.ctype,q.qstem,q.qoption,q.qtypeid,q.qtypename,q.count,q.hashear,q.hearfile
|
80
|
81
|
from (select max(qcid)qcid,questionid from t_question_class where classid=#{question.classid} group by
|
81
|
82
|
questionid)a
|
82
|
83
|
left join t_question_class qc on a.qcid=qc.qcid
|
|
@@ -134,6 +135,8 @@
|
134
|
135
|
<result property="ytjnum" column="ytjnum"></result>
|
135
|
136
|
<result property="wtjnum" column="wtjnum"></result>
|
136
|
137
|
<result property="pointname" column="pointname"></result>
|
|
138
|
+ <result property="hashear" column="hashear"></result>
|
|
139
|
+ <result property="hearfile" column="hearfile"></result>
|
137
|
140
|
<collection property="stus" ofType="com.xhkjedu.sstudy.vo.question.AnswerStu">
|
138
|
141
|
<result property="section" column="section"></result>
|
139
|
142
|
<result property="stunum" column="stunum"></result>
|
|
@@ -155,7 +158,7 @@
|
155
|
158
|
</select>
|
156
|
159
|
<!--客观题详情-->
|
157
|
160
|
<select id="objectiveDetail" resultMap="questionResult">
|
158
|
|
- select qc.qscore,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.complexity
|
|
161
|
+ select qc.qscore,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.complexity,q.hashear,q.hearfile
|
159
|
162
|
,qc.qctype,qc.avgscore,qc.errorrate,qc.paperid,qc.classid,qc.questionid
|
160
|
163
|
,psq.useranswer section,count(psq.psqid)stunum,psq.stuscore,group_concat(u.username order by convert(u.username using gbk) separator ' ')stuname
|
161
|
164
|
,(select group_concat(p.pointname separator ' ') from t_question_point qp
|
|
@@ -180,7 +183,7 @@
|
180
|
183
|
</select>
|
181
|
184
|
<!--主观题详情-->
|
182
|
185
|
<select id="subjectiveDetail" resultMap="questionResult">
|
183
|
|
- select qc.qscore,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.complexity
|
|
186
|
+ select qc.qscore,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.complexity,q.hashear,q.hearfile
|
184
|
187
|
,qc.qctype,qc.avgscore,qc.errorrate,qc.paperid,qc.classid,qc.questionid
|
185
|
188
|
,psq.stuscore,u.username stuname
|
186
|
189
|
,(select count(*) from t_paper_student ps where ps.paperid=qc.paperid and ps.classid=qc.classid)wtjnum
|
|
@@ -252,7 +255,7 @@
|
252
|
255
|
where paperid=#{question.paperid} and classid=#{question.classid} and questionpid=#{question.questionid}
|
253
|
256
|
</select>
|
254
|
257
|
<select id="complexDetail" resultMap="complexResult">
|
255
|
|
- select qc.qscore,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.complexity
|
|
258
|
+ select qc.qscore,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.complexity,q.hashear,q.hearfile
|
256
|
259
|
,qc.qctype,qc.avgscore,qc.errorrate,qc.paperid,qc.classid,qc.questionid
|
257
|
260
|
,(select group_concat(p.pointname separator ' ') from t_question_point qp
|
258
|
261
|
left join t_point p on qp.pointid = p.pointid where qp.questionid=q.questionid)pointname
|