|
@@ -117,7 +117,7 @@
|
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
|
119
|
,ptq.mqtypeid qtypeid,ptq.ptqorder qorder,max(q.checked)checked
|
120
|
|
- ,concat('[',group_concat(json_object('questionid',q.questionid,'qn',q.qn,'answertype',q.answertype
|
|
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
|
123
|
123
|
,(select tq.hashear from t_question tq where tq.questionid=ptq.questionpid)hashear
|
|
@@ -127,7 +127,7 @@
|
127
|
127
|
</if>
|
128
|
128
|
<if test="qctype==2">
|
129
|
129
|
select q.studentid,q.qscore,q.stuscore,q.pscaid questionid,ps.qtypeid,ps.psorder qorder
|
130
|
|
- ,concat('[',group_concat(json_object('questionid',q.pscaid,'qn',q.qorder,'answertype',q.answertype
|
|
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
|
133
|
133
|
from t_paper_student_scantron q left join t_paper_scantron ps on q.pscaid=ps.pscaid
|