浏览代码

作业按题统计

tags/正式版本
雍文秀 2 年前
父节点
当前提交
2f0b590681
共有 1 个文件被更改,包括 5 次插入2 次删除
  1. 5
    2
      sstudy/src/main/java/com/xhkjedu/sstudy/service/paper/PaperAnalyzeService.java

+ 5
- 2
sstudy/src/main/java/com/xhkjedu/sstudy/service/paper/PaperAnalyzeService.java 查看文件

@@ -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);

正在加载...
取消
保存