|
@@ -34,10 +34,11 @@
|
34
|
34
|
<result column="answered" property="answered" />
|
35
|
35
|
<result column="answertype" property="answertype" />
|
36
|
36
|
<result column="stuanswer" property="stuanswer" />
|
|
37
|
+ <result column="answertime" property="answertime" />
|
37
|
38
|
</collection>
|
38
|
39
|
</resultMap>
|
39
|
40
|
<select id="getStudentPaper" resultMap="stuPaper">
|
40
|
|
- SELECT ps.epsid,ps.epid,ps.stupic,ps.pagenum,ps.studentid,u.username,u.examno,ps.classid,c.classname,pt.qtypename,psq.epsqid,psq.eptqid,psq.qn,psq.ctype,psq.stuanswer
|
|
41
|
+ SELECT ps.epsid,ps.epid,ps.stupic,ps.pagenum,ps.studentid,u.username,u.examno,ps.classid,c.classname,pt.qtypename,psq.epsqid,psq.eptqid,psq.qn,psq.ctype,psq.stuanswer,psq.answertime
|
41
|
42
|
from (select ps.epsid FROM e_paper_student0608 ps
|
42
|
43
|
WHERE ps.examid=#{ps.examid} AND ps.subjectid=#{ps.subjectid} and ps.verified=#{ps.verified}
|
43
|
44
|
<if test="ps.epsid!=null and ps.epsid!=0">ps.epsid>#{ps.epsid}</if>
|
|
@@ -51,10 +52,10 @@
|
51
|
52
|
left join t_user u on ps.studentid=u.userid
|
52
|
53
|
left join t_class c on ps.classid=c.classid
|
53
|
54
|
</select>
|
54
|
|
- <!--识别正确跳过-->
|
|
55
|
+ <!--识别跳过-->
|
55
|
56
|
<update id="correctSkip">
|
56
|
57
|
UPDATE e_paper_student0608 ps LEFT JOIN e_paper_student ps2 ON ps.epsid=ps2.epsid
|
57
|
|
- SET ps.verified=1,ps.samed=1,ps2.verified=1 WHERE ps.epsid=#{epsid}
|
|
58
|
+ SET ps.verified=#{ps.verified},ps.samed=1,ps2.verified=#{ps.verified} WHERE ps.epid=#{ps.epid} and ps.studentid=#{ps.studentid}
|
58
|
59
|
</update>
|
59
|
60
|
|
60
|
61
|
<!--获取原试卷中试题正确答案-->
|