Browse Source

结束批阅部分班级某些试题收到人数为0报错

tags/正式3.4.0
雍文秀 2 years ago
parent
commit
065ef76b1e

+ 1
- 1
sstudy/src/main/resources/mapper/question/QuestionClassMapper.xml View File

9
         from t_paper_qtype_question ptq left join t_question q on ptq.questionid=q.questionid
9
         from t_paper_qtype_question ptq left join t_question q on ptq.questionid=q.questionid
10
         left join t_paper_student_question psq on ptq.paperid = psq.paperid and ptq.questionid=psq.questionid and psq.classid=#{classid}
10
         left join t_paper_student_question psq on ptq.paperid = psq.paperid and ptq.questionid=psq.questionid and psq.classid=#{classid}
11
         where ptq.paperid=#{paperid}
11
         where ptq.paperid=#{paperid}
12
-        group by ptq.questionid order by ptq.ptqorder
12
+        group by ptq.questionid having stunum!=0 order by ptq.ptqorder
13
     </select>
13
     </select>
14
     <!--答题卡作业统计按题-->
14
     <!--答题卡作业统计按题-->
15
     <select id="getSQuestionAnalyze" resultType="com.xhkjedu.sstudy.model.question.TQuestionClass">
15
     <select id="getSQuestionAnalyze" resultType="com.xhkjedu.sstudy.model.question.TQuestionClass">

Loading…
Cancel
Save