|
@@ -59,8 +59,8 @@
|
59
|
59
|
</select>
|
60
|
60
|
<!--试题批阅情况-->
|
61
|
61
|
<select id="getCheckQuestion" resultType="com.xhkjedu.sexam.vo.paper.EPaperSQuestionVo">
|
62
|
|
- select count(psq.epsqid)tjnum,count(case when psq.checked=1 then psq.epsqid else null end)pynum
|
63
|
|
- ,count(case when psq.checked=1 and psq.checkid=#{teacherid} then psq.epsqid else null end)wpynum
|
|
62
|
+ select count(psq.epsqid)tjnum,count(case when psq.checked=2 then psq.epsqid else null end)pynum
|
|
63
|
+ ,count(case when psq.checked=2 and psq.checkid=#{teacherid} then psq.epsqid else null end)wpynum
|
64
|
64
|
from e_paper_student_question psq where psq.epid=#{epid} and psq.qorder=#{qorder} and psq.answered=1
|
65
|
65
|
</select>
|
66
|
66
|
<!--修改试卷学生试题为批阅中-->
|
|
@@ -70,20 +70,20 @@
|
70
|
70
|
<!--获取上一份批阅试题-->
|
71
|
71
|
<select id="getPreQuestion" resultType="java.util.Map">
|
72
|
72
|
select psq.epsqid,psq.stuanswer,psq.qn,psq.qorder,psq.qscore,psq.stuscore,psq.good,psq.bad,psq.epsid
|
73
|
|
- from e_paper_student_question psq where psq.epid=#{epid} and psq.checked=1 and psq.checkid=#{teacherid}
|
|
73
|
+ from e_paper_student_question psq where psq.epid=#{epid} and psq.checked=2 and psq.checkid=#{teacherid}
|
74
|
74
|
order by psq.checktime desc limit 1
|
75
|
75
|
</select>
|
76
|
76
|
<!--阅卷记录-->
|
77
|
77
|
<select id="listRecord" resultType="java.util.Map">
|
78
|
78
|
select psq.epsqid,psq.stuanswer,psq.qorder,psq.qscore,psq.stuscore,psq.good,psq.bad,psq.checktime
|
79
|
79
|
from e_paper_student_question psq where psq.epid=#{epid} and psq.qorder=#{qorder}
|
80
|
|
- and psq.checked=1 and psq.checkid=#{teacherid}
|
|
80
|
+ and psq.checked=2 and psq.checkid=#{teacherid}
|
81
|
81
|
order by psq.checktime desc
|
82
|
82
|
</select>
|
83
|
83
|
<!--批阅试题-->
|
84
|
84
|
<update id="correctQuestion">
|
85
|
85
|
update e_paper_student_question
|
86
|
|
- set stuscore=#{psq.stuscore},checked=1
|
|
86
|
+ set stuscore=#{psq.stuscore},checked=2
|
87
|
87
|
,checkid=#{psq.checkid},checktime=unix_timestamp()
|
88
|
88
|
,good=#{psq.good},bad=#{psq.bad}
|
89
|
89
|
<if test="psq.stuanswer!=null and psq.stuanswer!=''">
|