Ver código fonte

Merge remote-tracking branch 'cloud-schoolapi/ywx'

tags/正式版本
王宁 2 anos atrás
pai
commit
34c2eb0380

+ 1
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/service/paper/PaperService.java Ver arquivo

@@ -501,6 +501,7 @@ public class PaperService {
501 501
                     q = mquestions.stream().filter(mq -> mq.getQuestionid().equals(questionpid)).findFirst().orElse(null);
502 502
                     double score = list.stream().mapToDouble(QuestionVo::getScore).sum();
503 503
                     q.setScore(score);
504
+                    q.setPtqorder(tq.getPtqorder());
504 505
                     q.setSonqlist(JSON.parseArray(JSON.toJSONString(list), Map.class));
505 506
                 } else {
506 507
                     q = tq;

+ 1
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/service/paperstudent/PaperStudentService.java Ver arquivo

@@ -140,6 +140,7 @@ public class PaperStudentService {
140 140
                 q.setMqoption(mt.getQoption());
141 141
                 q.setMqanswer(mt.getQanswer());
142 142
                 q.setMqanalyze(mt.getQanalyze());
143
+                q.setMqtypename(mt.getQtypename());
143 144
             }
144 145
         }
145 146
         return list;

+ 1
- 0
sstudy/src/main/java/com/xhkjedu/sstudy/vo/paperstudent/PaperStudentQuestionVo.java Ver arquivo

@@ -96,4 +96,5 @@ public class PaperStudentQuestionVo {
96 96
     private String mqoption;//母题选项
97 97
     private String mqanswer;//母题答案
98 98
     private String mqanalyze;//母题解析
99
+    private String mqtypename;//母题题型名称
99 100
 }

+ 1
- 1
sstudy/src/main/resources/mapper/paperstudent/PaperStudentQuestionMapper.xml Ver arquivo

@@ -9,7 +9,7 @@
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)
12
+        ELSE (SELECT json_object('qstem',fq.qstem,'qoption',fq.qoption,'qanswer',fq.qanswer,'qanalyze',fq.qanalyze,'qtypename',fq.qtypename)
13 13
         FROM t_question fq WHERE fq.questionid=q.questionpid) END)mqstem
14 14
         FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
15 15
         LEFT JOIN t_user u ON psq.studentid=u.userid

Carregando…
Cancelar
Salvar