|
@@ -4,7 +4,7 @@
|
4
|
4
|
<!--获取学生作业详情-->
|
5
|
5
|
<select id="getPaperQuestion" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
|
6
|
6
|
SELECT psq.psqid,psq.paperid,psq.studentid,psq.answered,psq.answertime,psq.costtime,psq.device,psq.checkcomm
|
7
|
|
- ,psq.useranswer,psq.converted,psq.useranswertext,psq.useranswertxt,psq.checked,psq.qscore,psq.stuscore,psq.qorder,u.username studentname,psq.psid
|
|
7
|
+ ,psq.useranswer,psq.answertype,psq.converted,psq.useranswertext,psq.useranswertxt,psq.checked,psq.qscore,psq.stuscore,psq.qorder,u.username studentname,psq.psid
|
8
|
8
|
,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypename,q.hashear,q.hearfile
|
9
|
9
|
,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
|
10
|
10
|
,(CASE WHEN q.ctype IN(16,17) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
|
|
@@ -19,7 +19,7 @@
|
19
|
19
|
<!--获取学生待批改试题列表-->
|
20
|
20
|
<select id="listCorrectQuestion" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
|
21
|
21
|
SELECT psq.psqid,psq.paperid,psq.studentid,psq.answered,psq.answertime,psq.costtime,psq.device,psq.checkcomm
|
22
|
|
- ,psq.useranswer,psq.converted,psq.useranswertext,psq.useranswertxt,psq.checked,psq.qscore,psq.stuscore,psq.qorder,u.username studentname,psq.psid
|
|
22
|
+ ,psq.useranswer,psq.answertype,psq.converted,psq.useranswertext,psq.useranswertxt,psq.checked,psq.qscore,psq.stuscore,psq.qorder,u.username studentname,psq.psid
|
23
|
23
|
,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypeid,q.qtypename
|
24
|
24
|
,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
|
25
|
25
|
,(CASE WHEN q.ctype IN(7,8) THEN JSON_LENGTH(q.qoption) ELSE 0 END)qoptioncount
|
|
@@ -84,6 +84,7 @@
|
84
|
84
|
<result property="psid" column="psid"></result>
|
85
|
85
|
<result property="psqid" column="psqid"></result>
|
86
|
86
|
<result property="device" column="device"></result>
|
|
87
|
+ <result property="answertype" column="answertype"></result>
|
87
|
88
|
<result property="useranswer" column="useranswer"></result>
|
88
|
89
|
<result property="converted" column="converted"></result>
|
89
|
90
|
<result property="useranswertext" column="useranswertext"></result>
|
|
@@ -95,7 +96,7 @@
|
95
|
96
|
<select id="qcorrectList" resultMap="questionResult">
|
96
|
97
|
select psq.qscore,psq.qorder,q.qstem,q.qoption,q.qanswer,q.qanalyze
|
97
|
98
|
,psq.stuscore,psq.answered,psq.checked,psq.checkcomm,psq.psid,psq.psqid
|
98
|
|
- ,psq.device,psq.useranswer,psq.converted,psq.useranswertext,psq.useranswertxt,u.username,ps.psstate
|
|
99
|
+ ,psq.device,psq.useranswer,psq.converted,psq.answertype,psq.useranswertext,psq.useranswertxt,u.username,ps.psstate
|
99
|
100
|
from t_paper_student_question psq left join t_question q on psq.questionid = q.questionid
|
100
|
101
|
left join t_user u on psq.studentid = u.userid
|
101
|
102
|
left join t_paper_student ps on psq.psid=ps.psid
|