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
                 q.setMhashear(mt.getHashear());
145
                 q.setMhashear(mt.getHashear());
146
                 q.setMhearfile(mt.getHearfile());
146
                 q.setMhearfile(mt.getHearfile());
147
                 q.setMqlevel(mt.getQlevel());
147
                 q.setMqlevel(mt.getQlevel());
148
+                q.setMctype(mt.getCtype());
148
             }
149
             }
149
         }
150
         }
150
         return list;
151
         return list;

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

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

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

11
         ,(CASE WHEN q.ctype IN(16,17) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
11
         ,(CASE WHEN q.ctype IN(16,17) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
12
         ,(CASE WHEN q.questionpid IS NULL THEN ''
12
         ,(CASE WHEN q.questionpid IS NULL THEN ''
13
         ELSE (SELECT json_object('qstem',fq.qstem,'qoption',fq.qoption,'qanswer',fq.qanswer,'qanalyze',fq.qanalyze
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
         FROM t_question fq WHERE fq.questionid=q.questionpid) END)mqstem
15
         FROM t_question fq WHERE fq.questionid=q.questionpid) END)mqstem
16
         FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
16
         FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
17
         LEFT JOIN t_user u ON psq.studentid=u.userid
17
         LEFT JOIN t_user u ON psq.studentid=u.userid

Loading…
Cancel
Save