Browse Source

获取靶向作业对象

tags/正式版本
雍文秀 2 years ago
parent
commit
71e7a2fb6b

+ 1
- 1
sstudy/src/main/resources/mapper/paperstudent/PaperGroupMapper.xml View File

@@ -87,7 +87,7 @@
87 87
         json_object('questionid',ptq2.questionid,'qn',ptq2.qn,'ptqorder',ptq2.ptqorder,'score',ptq2.ptqscore,'ctype',ptq.ctype
88 88
         ,'qstem',q2.qstem,'qoption',q2.qoption,'qanswer',q2.qanswer,'qanalyze',q2.qanalyze)),']')
89 89
         from t_paper_qtype_question ptq2 left join t_question q2 on ptq2.questionid = q2.questionid
90
-        where ptq2.questionpid=ptq.questionpid) else '' end)qstemtxt
90
+        where ptq2.questionpid=ptq.questionpid and ptq2.paperid=ptq.paperid) else '' end)qstemtxt
91 91
         ,(select concat('[',group_concat(json_object('pointid',qp.pointid,'pointname',p.pointname)),']')
92 92
         from t_question_point qp left join t_point p on qp.pointid = p.pointid
93 93
         where qp.questionid = ptq.questionpid)source

Loading…
Cancel
Save