Browse Source

作业按题统计

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

+ 5
- 2
sstudy/src/main/java/com/xhkjedu/sstudy/service/paper/PaperAnalyzeService.java View File

@@ -137,10 +137,13 @@ public class PaperAnalyzeService {
137 137
      * @return com.xhkjedu.sstudy.vo.paper.QuestionAnalyzeVo
138 138
      **/
139 139
     public QuestionAnalyzeVo getQuestionDetailAnalyze(AnalyzeQuestionVo question) {
140
-        QuestionAnalyzeVo analyze = paperAnalyzeMapper.getQuestionDetailAnalyze(question);
141 140
         String questionpid = question.getQuestionpid();
142 141
         String questionid = question.getQuestionid();
143
-        if(N_Utils.isEmpty(questionpid)) question.setQuestionpid(questionid);
142
+        if(N_Utils.isEmpty(questionpid)) {
143
+            question.setQuestionpid(questionid);
144
+            questionpid=questionid;
145
+        }
146
+        QuestionAnalyzeVo analyze = paperAnalyzeMapper.getQuestionDetailAnalyze(question);
144 147
         if (!questionpid.equals(questionid)) {
145 148
             List<Map> sonqlist = questionMapper.listSonQuestionsForDetail(questionpid);
146 149
             analyze.setSonqlist(sonqlist);

Loading…
Cancel
Save