|
@@ -49,7 +49,8 @@
|
49
|
49
|
</select>
|
50
|
50
|
<!--随机获取一条待批阅试题-->
|
51
|
51
|
<select id="getCorrectQuestion" resultType="com.xhkjedu.sexam.vo.paper.EPaperSQuestionVo">
|
52
|
|
- select psq.epsqid,psq.stuanswer,psq.qn,psq.eptqid,psq.qscore,psq.stuscore,psq.good,psq.bad,psq.epsid
|
|
52
|
+ select psq.epsqid,psq.qn,psq.eptqid,psq.qscore,psq.stuscore,psq.good,psq.bad,psq.epsid
|
|
53
|
+ ,psq.answertype,psq.stuanswer,psq.stuanswertxt
|
53
|
54
|
from e_paper_student_question psq where psq.eptqid=#{eptqid}
|
54
|
55
|
and psq.answered=1 and (psq.checked=0 or (psq.checked=1 and psq.checkid=#{teacherid}))
|
55
|
56
|
<if test="classids!=null and classids!=''">
|
|
@@ -69,7 +70,8 @@
|
69
|
70
|
</update>
|
70
|
71
|
<!--获取上一份批阅试题-->
|
71
|
72
|
<select id="getPreQuestion" resultType="com.xhkjedu.sexam.vo.paper.EPaperSQuestionVo">
|
72
|
|
- select psq.epsqid,psq.stuanswer,psq.qn,psq.eptqid,psq.qscore,psq.stuscore,psq.good,psq.bad,psq.epsid
|
|
73
|
+ select psq.epsqid,psq.qn,psq.eptqid,psq.qscore,psq.stuscore,psq.good,psq.bad,psq.epsid
|
|
74
|
+ ,psq.answertype,psq.stuanswer,psq.stuanswertxt
|
73
|
75
|
from e_paper_student_question psq where psq.eptqid=#{eptqid} and psq.checked=2 and psq.checkid=#{teacherid}
|
74
|
76
|
order by psq.checktime desc limit 1
|
75
|
77
|
</select>
|
|
@@ -87,7 +89,7 @@
|
87
|
89
|
,checkid=#{psq.checkid},checktime=unix_timestamp()
|
88
|
90
|
,good=#{psq.good},bad=#{psq.bad}
|
89
|
91
|
<if test="psq.stuanswer!=null and psq.stuanswer!=''">
|
90
|
|
- and stuanswer=#{psq.stuanswer}
|
|
92
|
+ ,stuanswer=#{psq.stuanswer}
|
91
|
93
|
</if>
|
92
|
94
|
where epsqid=#{psq.epsqid}
|
93
|
95
|
</update>
|