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
      * @return com.xhkjedu.sstudy.vo.paper.QuestionAnalyzeVo
137
      * @return com.xhkjedu.sstudy.vo.paper.QuestionAnalyzeVo
138
      **/
138
      **/
139
     public QuestionAnalyzeVo getQuestionDetailAnalyze(AnalyzeQuestionVo question) {
139
     public QuestionAnalyzeVo getQuestionDetailAnalyze(AnalyzeQuestionVo question) {
140
-        QuestionAnalyzeVo analyze = paperAnalyzeMapper.getQuestionDetailAnalyze(question);
141
         String questionpid = question.getQuestionpid();
140
         String questionpid = question.getQuestionpid();
142
         String questionid = question.getQuestionid();
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
         if (!questionpid.equals(questionid)) {
147
         if (!questionpid.equals(questionid)) {
145
             List<Map> sonqlist = questionMapper.listSonQuestionsForDetail(questionpid);
148
             List<Map> sonqlist = questionMapper.listSonQuestionsForDetail(questionpid);
146
             analyze.setSonqlist(sonqlist);
149
             analyze.setSonqlist(sonqlist);

Loading…
Cancel
Save