|
@@ -67,7 +67,8 @@
|
67
|
67
|
</resultMap>
|
68
|
68
|
<!--题库作业试题-->
|
69
|
69
|
<select id="listTkSt" resultMap="typeResult">
|
70
|
|
- select pq.qtypename,pq.ptid,pq.ptorder,pqq.qn,psq.qorder,sum(psq.qscore)qscore,tq.ctype,
|
|
70
|
+ select pq.qtypename,pq.ptid,pq.ptorder,psq.qorder,sum(psq.qscore)qscore,tq.ctype,
|
|
71
|
+ (case when tq.qlevel=1 then pqq.qn else pqq.ptqorder end)qn,
|
71
|
72
|
pqq.questionpid questionid,tq.qtypename qqtypename
|
72
|
73
|
<if test="showanswer==1">
|
73
|
74
|
,q.classavgscore,q.classscorerate,truncate(sum(psq.stuscore)*100/sum(psq.qscore),2)scorerate
|
|
@@ -146,7 +147,7 @@
|
146
|
147
|
<if test="papertype==2">,q.qn mqn,q.pssid psqid from t_paper_student_scantron q</if>
|
147
|
148
|
left join t_user u on q.studentid=u.userid
|
148
|
149
|
where q.paperid=#{paperid} and q.classid=#{classid} and good=1
|
149
|
|
- order by q.qorder,convert(u.username using gbk)
|
|
150
|
+ order by q.qorder,q.qn,convert(u.username using gbk)
|
150
|
151
|
</select>
|
151
|
152
|
<!--作业基本信息-->
|
152
|
153
|
<select id="getPaper" resultType="java.util.Map">
|