|
@@ -123,11 +123,13 @@
|
123
|
123
|
<result property="username" column="username"></result>
|
124
|
124
|
<result property="headpic" column="headpic"></result>
|
125
|
125
|
<result property="qorder" column="qorder"></result>
|
|
126
|
+ <result property="psid" column="psid"></result>
|
126
|
127
|
<collection property="questions" ofType="java.util.Map" javaType="java.util.List">
|
127
|
128
|
<result property="studentid" column="studentid"></result>
|
128
|
129
|
<result property="qn" column="qn"></result>
|
129
|
130
|
<result property="qorder" column="qorder"></result>
|
130
|
|
- <result property="questionid" column="questionid"></result>
|
|
131
|
+ <result property="psqid" column="psqid"></result>
|
|
132
|
+ <result property="questionpid" column="questionpid"></result>
|
131
|
133
|
<result property="stuscore" column="stuscore"></result>
|
132
|
134
|
<result property="answertype" column="answertype"></result>
|
133
|
135
|
<result property="useranswer" column="useranswer"></result>
|
|
@@ -139,9 +141,9 @@
|
139
|
141
|
</resultMap>
|
140
|
142
|
<select id="listGoodAnswer" resultMap="answerResult">
|
141
|
143
|
select q.qorder,q.qn,q.stuscore,q.answertype,q.useranswer,q.converted,q.useranswertxt,q.checkcomm
|
142
|
|
- ,q.studentid,u.username,u.headpic
|
143
|
|
- <if test="papertype!=2">,q.qorder mqn from t_paper_student_question q</if>
|
144
|
|
- <if test="papertype==2">,q.qn mqn from t_paper_student_scantron q</if>
|
|
144
|
+ ,q.studentid,q.psid,u.username,u.headpic
|
|
145
|
+ <if test="papertype!=2">,q.qorder mqn,q.psqid,q.questionpid from t_paper_student_question q</if>
|
|
146
|
+ <if test="papertype==2">,q.qn mqn,q.pssid psqid from t_paper_student_scantron q</if>
|
145
|
147
|
left join t_user u on q.studentid=u.userid
|
146
|
148
|
where q.paperid=#{paperid} and q.classid=#{classid} and good=1
|
147
|
149
|
order by q.qorder,convert(u.username using gbk)
|