|
@@ -25,7 +25,7 @@
|
25
|
25
|
</select>
|
26
|
26
|
<!--作业分析-->
|
27
|
27
|
<select id="getPaperAnalyze" resultType="java.util.Map">
|
28
|
|
- select p.paperid,p.papertype,p.papername,pa.pointjson,ifnull(ps.showanswer,0) as showanswer,ps.psid
|
|
28
|
+ select p.paperid,p.papertype,p.papername,p.hasreport,pa.pointjson,ifnull(ps.showanswer,0) as showanswer,ps.psid
|
29
|
29
|
,(select pc.showtype from t_paper_class pc where pc.paperid=ps.paperid and pc.classid=ps.classid)showtype
|
30
|
30
|
from t_paper p left join t_paper_analyze pa on p.paperid = pa.paperid
|
31
|
31
|
left join t_paper_student ps on p.paperid = ps.paperid
|
|
@@ -70,11 +70,14 @@
|
70
|
70
|
select pq.qtypename,pq.ptid,pq.ptorder,psq.qorder,sum(psq.qscore) as qscore,tq.ctype,
|
71
|
71
|
(if(tq.qlevel=1, pqq.qn, pqq.ptqorder)) as qn,
|
72
|
72
|
pqq.questionpid as questionid,tq.qtypename qqtypename
|
73
|
|
- <if test="showanswer==1">
|
|
73
|
+ <if test="showanswer==1 or hasreport==1">
|
74
|
74
|
,q.classavgscore,q.classscorerate,truncate(sum(psq.stuscore)*100/sum(psq.qscore),2) as scorerate
|
75
|
|
- ,sum(psq.stuscore) as stuscore,psq.good,tq.qanswer,tq.qanalyze
|
|
75
|
+ ,sum(psq.stuscore) as stuscore,psq.good
|
76
|
76
|
,(if(tq.qlevel=1, psq.checkcomm, '')) as checkcomm
|
77
|
77
|
</if>
|
|
78
|
+ <if test="showanswer==1">
|
|
79
|
+ ,tq.qanswer,tq.qanalyze
|
|
80
|
+ </if>
|
78
|
81
|
,psq.answered,psq.answertype,psq.useranswer,psq.converted,psq.useranswertxt
|
79
|
82
|
,tq.qstem,tq.qoption,tq.hashear,tq.hearfile,tq.qlevel
|
80
|
83
|
from t_paper_qtype_question pqq left join t_paper_qtype pq on pqq.ptid=pq.ptid
|
|
@@ -89,9 +92,12 @@
|
89
|
92
|
<select id="listFjSt" resultMap="typeResult">
|
90
|
93
|
select pq.qtypename,pq.psqtypeid as ptid,pq.pstorder as ptorder,ps.qn,ps.psorder as qorder
|
91
|
94
|
,ps.psscore as qscore,ps.ctype,ps.optionnum,ps.pscaid as ptqid,ps.qtypename as qqtypename
|
92
|
|
- <if test="showanswer==1">
|
|
95
|
+ <if test="showanswer==1 or hasreport==1">
|
93
|
96
|
,q.classavgscore,q.classscorerate,truncate(pss.stuscore*100/pss.qscore,2)scorerate
|
94
|
|
- ,pss.stuscore,pss.good,pss.checkcomm,ps.psanswer qanswer
|
|
97
|
+ ,pss.stuscore,pss.good,pss.checkcomm
|
|
98
|
+ </if>
|
|
99
|
+ <if test="showanswer==1">
|
|
100
|
+ ,ps.psanswer qanswer
|
95
|
101
|
</if>
|
96
|
102
|
,pss.answered,pss.answertype,pss.useranswer,pss.converted,pss.useranswertxt
|
97
|
103
|
from t_paper_scantron ps left join t_paper_student_scantron pss on ps.pscaid=pss.pscaid
|