Browse Source

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

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

+ 4
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/service/question/QuestionClassService.java View File

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

+ 2
- 1
sstudy/src/main/resources/mapper/question/QuestionStudentMapper.xml View File

105
     </select>
105
     </select>
106
     <!--附件试题详情-->
106
     <!--附件试题详情-->
107
     <select id="sdetail" resultType="com.xhkjedu.sstudy.vo.question.QuestionStudentVo">
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
         ,ps.psanswer qanswer,ps.ctype,qs.qsid,qs.qscore,qs.stuscore,qs.stujson,qs.paperid
109
         ,ps.psanswer qanswer,ps.ctype,qs.qsid,qs.qscore,qs.stuscore,qs.stujson,qs.paperid
110
         from t_question_student qs left join t_paper_scantron ps on qs.questionid=ps.pscaid
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
         where qs.questionid=#{questionid} and qs.studentid=#{studentid} and qs.qctype=2 limit 1
112
         where qs.questionid=#{questionid} and qs.studentid=#{studentid} and qs.qctype=2 limit 1
112
     </select>
113
     </select>
113
 
114
 

Loading…
Cancel
Save