|
@@ -9,7 +9,7 @@
|
9
|
9
|
</select>
|
10
|
10
|
<!--列表-->
|
11
|
11
|
<select id="findAll" resultType="com.xhkjedu.sstudy.vo.question.QuestionStudentVo">
|
12
|
|
- select qs.qsid,qs.questionid,qs.qscore,qs.stuscore,qs.scorerate,qs.qctype,qs.qorder,qs.qtypeid,qs.paperid
|
|
12
|
+ select qs.qsid,qs.questionid,qs.qscore,qs.stuscore,qs.scorerate,qs.qctype,qs.qorder,qs.qn,qs.qtypeid,qs.paperid
|
13
|
13
|
from t_question_student qs left join t_paper p on qs.paperid=p.paperid
|
14
|
14
|
where qs.studentid = #{qs.studentid} and delstate=0 and qs.subjectid=#{qs.subjectid}
|
15
|
15
|
<if test="qs.starttime!=null and qs.starttime!=0">
|
|
@@ -41,8 +41,8 @@
|
41
|
41
|
|
42
|
42
|
<!--//////////////////////////////////////////////学生WEB端//////////////////////////////////////////////-->
|
43
|
43
|
<select id="listForWeb" resultType="com.xhkjedu.sstudy.vo.question.QuestionStudentVo">
|
44
|
|
- select qs.qsid,qs.questionid,qs.qscore,qs.stuscore,qs.scorerate,qs.qctype,qs.qorder
|
45
|
|
- ,qs.qtypeid,concat(p.papername,'-第',qs.qorder,'题')qstem
|
|
44
|
+ select qs.qsid,qs.questionid,qs.qscore,qs.stuscore,qs.scorerate,qs.qctype,qs.qorder,qs.qn
|
|
45
|
+ ,qs.qtypeid,concat(p.papername,'-第',qs.qn,'题')qstem
|
46
|
46
|
from t_question_student qs left join t_paper p on qs.paperid=p.paperid
|
47
|
47
|
where qs.studentid=#{question.studentid} and qs.delstate=0
|
48
|
48
|
<if test="question.starttime!=null and question.starttime!=0">
|
|
@@ -68,7 +68,7 @@
|
68
|
68
|
</select>
|
69
|
69
|
<!--更新错题信息-->
|
70
|
70
|
<update id="updateQuestion">
|
71
|
|
- update t_question_student set qtypeid=#{qs.qtypeid},qorder=#{qs.qorder}
|
|
71
|
+ update t_question_student set qtypeid=#{qs.qtypeid},qorder=#{qs.qorder},qn=#{qs.qn}
|
72
|
72
|
,qscore=#{qs.qscore},stuscore=#{qs.stuscore},scorerate=#{qs.scorerate},paperid=#{qs.paperid}
|
73
|
73
|
,errornum=errornum+1,delstate=0,handletime=#{qs.handletime},stujson=#{qs.stujson}
|
74
|
74
|
where qsid=#{qs.qsid}
|
|
@@ -97,7 +97,7 @@
|
97
|
97
|
</select>
|
98
|
98
|
<select id="detail" resultMap="questionResult">
|
99
|
99
|
select q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.questionid,q.hashear,q.hearfile
|
100
|
|
- ,qs.qsid,qs.qscore,qs.stuscore,qs.stujson,qs.paperid,qs.studentid,qs.qorder
|
|
100
|
+ ,qs.qsid,qs.qscore,qs.stuscore,qs.stujson,qs.paperid,qs.studentid,qs.qorder,qs.qn
|
101
|
101
|
,(select group_concat(p.pointname separator ' ') from t_question_point qp
|
102
|
102
|
left join t_point p on qp.pointid = p.pointid where qp.questionid=qs.questionid)pointname
|
103
|
103
|
from t_question_student qs left join t_question q on qs.questionid=q.questionid
|
|
@@ -105,7 +105,7 @@
|
105
|
105
|
</select>
|
106
|
106
|
<!--附件试题详情-->
|
107
|
107
|
<select id="sdetail" resultType="com.xhkjedu.sstudy.vo.question.QuestionStudentVo">
|
108
|
|
- select concat(p.papername,'-第',qs.qorder,'题')qstem,p.hearfile
|
|
108
|
+ select concat(p.papername,'-第',qs.qn,'题')qstem,p.hearfile
|
109
|
109
|
,ps.psanswer qanswer,ps.ctype,qs.qsid,qs.qscore,qs.stuscore,qs.stujson,qs.paperid
|
110
|
110
|
from t_question_student qs left join t_paper_scantron ps on qs.questionid=ps.pscaid
|
111
|
111
|
left join t_paper p on p.paperid=qs.paperid
|
|
@@ -116,7 +116,7 @@
|
116
|
116
|
<select id="listQuestions" resultType="com.xhkjedu.sstudy.model.question.TQuestionStudent">
|
117
|
117
|
<if test="qctype==1 or qctype==3">
|
118
|
118
|
select q.studentid,ptq.mscore qscore,sum(q.stuscore)stuscore,ptq.questionpid questionid
|
119
|
|
- ,ptq.mqtypeid qtypeid,ptq.ptqorder qorder,max(q.checked)checked
|
|
119
|
+ ,ptq.mqtypeid qtypeid,ptq.ptqorder qorder,q.qn,max(q.checked)checked
|
120
|
120
|
,concat('[',group_concat(json_object('questionid',q.questionid,'qn',q.qn,'qorder',q.qorder,'answertype',q.answertype
|
121
|
121
|
,'useranswer',q.useranswer,'useranswertxt',q.useranswertxt,'converted',q.converted
|
122
|
122
|
,'qscore',q.qscore,'stuscore',q.stuscore,'ctype',ptq.ctype)),']')stujson
|
|
@@ -126,7 +126,7 @@
|
126
|
126
|
group by ptq.questionpid,q.studentid,q.classid HAVING checked=1 and qscore!=stuscore
|
127
|
127
|
</if>
|
128
|
128
|
<if test="qctype==2">
|
129
|
|
- select q.studentid,q.qscore,q.stuscore,q.pscaid questionid,ps.qtypeid,ps.psorder qorder
|
|
129
|
+ select q.studentid,q.qscore,q.stuscore,q.pscaid questionid,ps.qtypeid,ps.psorder qorder,q.qn
|
130
|
130
|
,concat('[',group_concat(json_object('questionid',q.pscaid,'qn',q.qn,'qorder',q.qorder,'answertype',q.answertype
|
131
|
131
|
,'useranswer',q.useranswer,'useranswertxt',q.useranswertxt,'converted',q.converted
|
132
|
132
|
,'qscore',q.qscore,'stuscore',q.stuscore,'ctype',ps.ctype)),']')stujson
|