Browse Source

作业返回听力文件

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

+ 2
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/service/paperstudent/PaperStudentService.java View File

@@ -141,6 +141,8 @@ public class PaperStudentService {
141 141
                 q.setMqanswer(mt.getQanswer());
142 142
                 q.setMqanalyze(mt.getQanalyze());
143 143
                 q.setMqtypename(mt.getQtypename());
144
+                q.setMhashear(mt.getHashear());
145
+                q.setMhearfile(mt.getHearfile());
144 146
             }
145 147
         }
146 148
         return list;

+ 4
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/vo/paperstudent/PaperStudentQuestionVo.java View File

@@ -97,4 +97,8 @@ public class PaperStudentQuestionVo {
97 97
     private String mqanswer;//母题答案
98 98
     private String mqanalyze;//母题解析
99 99
     private String mqtypename;//母题题型名称
100
+    private Integer mhashear;//母题是否是听力题0不是1是
101
+    private String mhearfile;//母题听力题文件地址
102
+    private Integer hashear;//是否是听力题0不是1是
103
+    private String hearfile;//听力题文件地址
100 104
 }

+ 3
- 1
sstudy/src/main/resources/mapper/paper/PaperAnalyzeMapper.xml View File

@@ -195,6 +195,8 @@
195 195
             <result property="complexity" column="complexity"></result>
196 196
             <result property="pointname" column="pointname"></result>
197 197
             <result property="checkcomm" column="checkcomm"></result>
198
+            <result property="hashear" column="hashear"></result>
199
+            <result property="hearfile" column="hearfile"></result>
198 200
         </collection>
199 201
     </resultMap>
200 202
     <!--作业统计 按人详情 题型列表-->
@@ -202,7 +204,7 @@
202 204
         SELECT t.qtypename,t.ptorder,t.ptscore,t.ptnum
203 205
         ,psq.psqid,psq.paperid,psq.studentid,psq.answered,psq.answertime,psq.costtime,psq.device,psq.checkcomm
204 206
         ,psq.useranswer,psq.converted,psq.useranswertext,psq.useranswertxt,psq.checked,psq.qscore,psq.stuscore,psq.qorder,psq.psid
205
-        ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity
207
+        ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.hashear,q.hearfile
206 208
         FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
207 209
         LEFT JOIN t_paper_qtype_question tq ON psq.questionid=tq.questionid AND psq.paperid=tq.paperid
208 210
         LEFT JOIN t_paper_qtype t ON tq.ptid=t.ptid

+ 4
- 1
sstudy/src/main/resources/mapper/paper/PaperMapper.xml View File

@@ -18,12 +18,15 @@
18 18
             <result property="qoption" column="qoption"></result>
19 19
             <result property="qanswer" column="qanswer"></result>
20 20
             <result property="qanalyze" column="qanalyze"></result>
21
+            <result property="hashear" column="hashear"></result>
22
+            <result property="hearfile" column="hearfile"></result>
21 23
         </collection>
22 24
     </resultMap>
23 25
     <!--获取作业题型列表-->
24 26
     <select id="listPaperType" resultMap="typeResult">
25 27
         select pt.qtypeid,pt.qtypename,pt.ptorder,pt.ptscore,pt.ptnum,ptq.questionid,ptq.ptqscore score,ptq.ptqorder
26 28
         ,q.questionid,ifnull(q.questionpid,q.questionid)questionpid,q.qlevel,q.ctype,q.qstem,q.qoption,q.qanswer,q.qanalyze
29
+        ,q.hashear,q.hearfile
27 30
         from t_paper_qtype pt left join t_paper_qtype_question ptq on pt.ptid = ptq.ptid
28 31
         left join t_question q on ptq.questionid = q.questionid
29 32
         where pt.paperid=#{paperid} order by pt.ptorder,ptq.ptqid
@@ -272,7 +275,7 @@
272 275
     </select>
273 276
     <!--作业母题列表-->
274 277
     <select id="listQuestionByQuestionIds" resultType="com.xhkjedu.sstudy.vo.question.QuestionVo">
275
-        select questionid,ctype,qstem,qoption,qanswer,qanalyze
278
+        select questionid,ctype,qstem,qoption,qanswer,qanalyze,q.hashear,q.hearfile
276 279
         from t_question q where questionid in
277 280
         <foreach collection="questionids" item="questionid" open="(" separator="," close=")">
278 281
             #{questionid}

+ 3
- 2
sstudy/src/main/resources/mapper/paperstudent/PaperStudentQuestionMapper.xml View File

@@ -5,11 +5,12 @@
5 5
     <select id="getPaperQuestion" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
6 6
         SELECT psq.psqid,psq.paperid,psq.studentid,psq.answered,psq.answertime,psq.costtime,psq.device,psq.checkcomm
7 7
         ,psq.useranswer,psq.converted,psq.useranswertext,psq.useranswertxt,psq.checked,psq.qscore,psq.stuscore,psq.qorder,u.username studentname,psq.psid
8
-        ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypename
8
+        ,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypename,q.hashear,q.hearfile
9 9
         ,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
10 10
         ,(CASE WHEN q.ctype IN(16,17) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
11 11
         ,(CASE WHEN q.questionpid IS NULL THEN ''
12
-        ELSE (SELECT json_object('qstem',fq.qstem,'qoption',fq.qoption,'qanswer',fq.qanswer,'qanalyze',fq.qanalyze,'qtypename',fq.qtypename)
12
+        ELSE (SELECT json_object('qstem',fq.qstem,'qoption',fq.qoption,'qanswer',fq.qanswer,'qanalyze',fq.qanalyze
13
+            ,'qtypename',fq.qtypename,'hashear',fq.hashear,'hearfile',fq.hearfile)
13 14
         FROM t_question fq WHERE fq.questionid=q.questionpid) END)mqstem
14 15
         FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
15 16
         LEFT JOIN t_user u ON psq.studentid=u.userid

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

@@ -287,7 +287,7 @@
287 287
 
288 288
     <select id="listSonQuestionForSelect" resultType="java.util.Map">
289 289
         select q.questionid,q.score,q.complexity,q.qstem,q.qoption,q.qanswer,q.qanalyze
290
-        ,q.qtypeid,q.qtypename,q.ctype,q.qlevel,q.sorder
290
+        ,q.qtypeid,q.qtypename,q.ctype,q.qlevel,q.sorder,q.hashear,q.hearfile
291 291
         from t_question q where q.qlevel=3 and q.questionpid=#{questionid} order by q.sorder
292 292
     </select>
293 293
     <!--修改试题状态-->

Loading…
Cancel
Save