|
@@ -214,6 +214,8 @@
|
214
|
214
|
,psq.qorder,psq.qn,psq.psid
|
215
|
215
|
,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.hashear,q.hearfile,q.qlevel,q.sorder
|
216
|
216
|
,ifnull(q.questionpid,q.questionid)questionpid
|
|
217
|
+ ,(case when psq.questionid!=psq.questionpid then '' else (select group_concat(p.pointname separator ' ')
|
|
218
|
+ from t_question_point qp left join t_point p on qp.pointid=p.pointid where qp.questionid=q.questionid) end)pointname
|
217
|
219
|
FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
|
218
|
220
|
LEFT JOIN t_paper_qtype_question tq ON psq.questionid=tq.questionid AND psq.paperid=tq.paperid
|
219
|
221
|
LEFT JOIN t_paper_qtype t ON tq.ptid=t.ptid
|
|
@@ -490,6 +492,8 @@
|
490
|
492
|
<!--作业母题列表-->
|
491
|
493
|
<select id="listQuestionByQuestionIds" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
|
492
|
494
|
select questionid,ctype,qstem,qoption,qanswer,qanalyze,q.hashear,q.hearfile,q.qlevel
|
|
495
|
+ ,(select group_concat(p.pointname separator ' ') from t_question_point qp
|
|
496
|
+ left join t_point p on qp.pointid=p.pointid where qp.questionid=q.questionid)pointname
|
493
|
497
|
from t_question q where questionid in
|
494
|
498
|
<foreach collection="questionids" item="questionid" open="(" separator="," close=")">
|
495
|
499
|
#{questionid}
|