Quellcode durchsuchen

错题集详情返回附件作业听力文件

tags/正式版本
雍文秀 vor 2 Jahren
Ursprung
Commit
a226bd7137

+ 4
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/service/question/QuestionClassService.java Datei anzeigen

@@ -249,6 +249,8 @@ public class QuestionClassService {
249 249
             detail = questionClassMapper.objectiveSDetail(question);
250 250
             List<Map> files = questionClassMapper.listObjsByPaperid(detail.getPaperid(), qctype);
251 251
             detail.setFiles(files);
252
+            String hearfile = paperMapper.getHearfileByPaperid(detail.getPaperid().intValue());
253
+            detail.setHearfile(hearfile);
252 254
         }
253 255
         Integer totalnum = questionClassMapper.getTotalnum(detail.getPaperid(), detail.getClassid(),qctype);
254 256
         Integer ytjnum = 0;
@@ -274,6 +276,8 @@ public class QuestionClassService {
274 276
             detail = questionClassMapper.subjectiveSDetail(question);
275 277
             List<Map> files = questionClassMapper.listObjsByPaperid(detail.getPaperid(), qctype);
276 278
             detail.setFiles(files);
279
+            String hearfile = paperMapper.getHearfileByPaperid(detail.getPaperid().intValue());
280
+            detail.setHearfile(hearfile);
277 281
         }
278 282
         Integer totalnum = detail.getWtjnum();
279 283
         List<AnswerStu> stus = detail.getStus();

+ 2
- 1
sstudy/src/main/resources/mapper/question/QuestionStudentMapper.xml Datei anzeigen

@@ -105,9 +105,10 @@
105 105
     </select>
106 106
     <!--附件试题详情-->
107 107
     <select id="sdetail" resultType="com.xhkjedu.sstudy.vo.question.QuestionStudentVo">
108
-        select (select concat(p.papername,'-第',qs.qorder,'题') from t_paper p where p.paperid=qs.paperid)qstem
108
+        select concat(p.papername,'-第',qs.qorder,'题')qstem,p.hearfile
109 109
         ,ps.psanswer qanswer,ps.ctype,qs.qsid,qs.qscore,qs.stuscore,qs.stujson,qs.paperid
110 110
         from t_question_student qs left join t_paper_scantron ps on qs.questionid=ps.pscaid
111
+        left join t_paper p on p.paperid=qs.paperid
111 112
         where qs.questionid=#{questionid} and qs.studentid=#{studentid} and qs.qctype=2 limit 1
112 113
     </select>
113 114
 

Laden…
Abbrechen
Speichern