|
@@ -12,6 +12,10 @@
|
12
|
12
|
ELSE (SELECT json_object('qstem',fq.qstem,'qoption',fq.qoption,'qanswer',fq.qanswer,'qanalyze',fq.qanalyze
|
13
|
13
|
,'qtypename',fq.qtypename,'hashear',fq.hashear,'hearfile',fq.hearfile,'qlevel',fq.qlevel,'ctype',fq.ctype)
|
14
|
14
|
FROM t_question fq WHERE fq.questionid=q.questionpid) END)mqstem
|
|
15
|
+ ,(case when q.questionpid is null then (select group_concat(p.pointname separator ' ') from t_question_point qp
|
|
16
|
+ left join t_point p on qp.pointid=p.pointid where qp.questionid=q.questionid)
|
|
17
|
+ else (select group_concat(p.pointname separator ' ') from t_question_point qp
|
|
18
|
+ left join t_point p on qp.pointid=p.pointid where qp.questionid=q.questionpid) end)pointname
|
15
|
19
|
FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
|
16
|
20
|
WHERE psq.psid=#{psid} ORDER BY psq.psqid
|
17
|
21
|
</select>
|