|
@@ -11,7 +11,7 @@
|
11
|
11
|
,(CASE WHEN q.ctype IN(16,17) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
|
12
|
12
|
,(CASE WHEN q.questionpid IS NULL THEN ''
|
13
|
13
|
ELSE (SELECT json_object('qstem',fq.qstem,'qoption',fq.qoption,'qanswer',fq.qanswer,'qanalyze',fq.qanalyze
|
14
|
|
- ,'qtypename',fq.qtypename,'hashear',fq.hashear,'hearfile',fq.hearfile,'qlevel',fq.qlevel)
|
|
14
|
+ ,'qtypename',fq.qtypename,'hashear',fq.hashear,'hearfile',fq.hearfile,'qlevel',fq.qlevel,'ctype',fq.ctype)
|
15
|
15
|
FROM t_question fq WHERE fq.questionid=q.questionpid) END)mqstem
|
16
|
16
|
FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
|
17
|
17
|
LEFT JOIN t_user u ON psq.studentid=u.userid
|