|
@@ -44,17 +44,17 @@
|
44
|
44
|
</select>
|
45
|
45
|
<!--学生优秀试卷-->
|
46
|
46
|
<select id="listGoodActionByExamId" resultType="java.util.Map">
|
47
|
|
- select studentid,classid,epsq.subjectid,s.subjectname,count(epsq.epsqid)num
|
|
47
|
+ select studentid,classid,epsq.subjectid,s.subjectname,count(distinct epsq.qorder)num
|
48
|
48
|
from e_paper_student_question epsq left join t_subject s on epsq.subjectid=s.subjectid
|
49
|
49
|
where examid=#{examid} and good=1
|
50
|
|
- group by studentid, subjectid, good
|
|
50
|
+ group by studentid, subjectid
|
51
|
51
|
</select>
|
52
|
52
|
<!--学生违规试卷-->
|
53
|
53
|
<select id="listBadQuesActionByExamId" resultType="java.util.Map">
|
54
|
|
- select studentid,classid,epsq.subjectid,s.subjectname,count(epsq.epsqid)num
|
|
54
|
+ select studentid,classid,epsq.subjectid,s.subjectname,count(distinct epsq.qorder)num
|
55
|
55
|
from e_paper_student_question epsq left join t_subject s on epsq.subjectid=s.subjectid
|
56
|
56
|
where examid=#{examid} and bad=1
|
57
|
|
- group by studentid, subjectid, bad
|
|
57
|
+ group by studentid, subjectid
|
58
|
58
|
</select>
|
59
|
59
|
<!--获取试卷分数-->
|
60
|
60
|
<select id="getScoreByExamAndSubjectId" resultType="java.lang.Double">
|