|
@@ -33,7 +33,7 @@
|
33
|
33
|
<select id="listCorrectQuestion" resultType="com.xhkjedu.sstudy.vo.paperstudent.PaperStudentQuestionVo">
|
34
|
34
|
SELECT psq.psqid,psq.paperid,psq.studentid,psq.answered,psq.answertime,psq.costtime,psq.checkcomm
|
35
|
35
|
,psq.useranswer,psq.answertype,psq.converted,psq.useranswertext,psq.useranswertxt,psq.checked,psq.qscore
|
36
|
|
- ,psq.stuscore,psq.qorder,psq.psid,psq.qn
|
|
36
|
+ ,psq.stuscore,psq.qorder,psq.psid,psq.qn,psq.good
|
37
|
37
|
,q.questionid,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype,q.complexity,q.qtypeid,q.qtypename
|
38
|
38
|
,(CASE WHEN psq.checked=1 AND psq.stuscore=psq.qscore THEN 1 ELSE 2 END)corrected
|
39
|
39
|
FROM t_paper_student_question psq LEFT JOIN t_question q ON psq.questionid=q.questionid
|
|
@@ -104,11 +104,12 @@
|
104
|
104
|
<result property="useranswertext" column="useranswertext"></result>
|
105
|
105
|
<result property="useranswertxt" column="useranswertxt"></result>
|
106
|
106
|
<result property="studentname" column="username"></result>
|
|
107
|
+ <result property="good" column="good"></result>
|
107
|
108
|
</collection>
|
108
|
109
|
</resultMap>
|
109
|
110
|
<select id="qcorrectList" resultMap="questionResult">
|
110
|
111
|
select psq.qscore,psq.qorder,psq.qn,q.qstem,q.qoption,q.qanswer,q.qanalyze
|
111
|
|
- ,psq.stuscore,psq.answered,psq.checked,psq.checkcomm,psq.psid,psq.psqid
|
|
112
|
+ ,psq.stuscore,psq.answered,psq.checked,psq.checkcomm,psq.psid,psq.psqid,psq.good
|
112
|
113
|
,psq.useranswer,psq.converted,psq.answertype,psq.useranswertext,psq.useranswertxt,u.username
|
113
|
114
|
from t_paper_student_question psq left join t_question q on psq.questionid = q.questionid
|
114
|
115
|
left join t_user u on psq.studentid = u.userid
|