Browse Source

学生作业详情返回母题处理题型

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

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

@@ -145,6 +145,7 @@ public class PaperStudentService {
145 145
                 q.setMhashear(mt.getHashear());
146 146
                 q.setMhearfile(mt.getHearfile());
147 147
                 q.setMqlevel(mt.getQlevel());
148
+                q.setMctype(mt.getCtype());
148 149
             }
149 150
         }
150 151
         return list;

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

@@ -108,6 +108,7 @@ public class PaperStudentQuestionVo {
108 108
     private String hearfile;//听力题文件地址
109 109
     private Integer qlevel;//试题级别1单题2母题
110 110
     private Integer mqlevel;//母题试题级别1单题2母题
111
+    private Integer mctype;//母题处理题型
111 112
     private Integer sorder;//子题排序
112 113
     private String questionpid;//母题id
113 114
     private String qn;//显示题号

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

@@ -11,7 +11,7 @@
11 11
         ,(CASE WHEN q.ctype IN(16,17) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
12 12
         ,(CASE WHEN q.questionpid IS NULL THEN ''
13 13
         ELSE (SELECT json_object('qstem',fq.qstem,'qoption',fq.qoption,'qanswer',fq.qanswer,'qanalyze',fq.qanalyze
14
-            ,'qtypename',fq.qtypename,'hashear',fq.hashear,'hearfile',fq.hearfile,'qlevel',fq.qlevel)
14
+            ,'qtypename',fq.qtypename,'hashear',fq.hashear,'hearfile',fq.hearfile,'qlevel',fq.qlevel,'ctype',fq.ctype)
15 15
         FROM t_question fq WHERE fq.questionid=q.questionpid) END)mqstem
16 16
         FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
17 17
         LEFT JOIN t_user u ON psq.studentid=u.userid

Loading…
Cancel
Save