|
@@ -84,7 +84,9 @@
|
84
|
84
|
</select>
|
85
|
85
|
<!--作业统计按题-->
|
86
|
86
|
<select id="getQuestionAnalyze" resultType="com.xhkjedu.sstudy.vo.paper.AnalyzeQuestionVo">
|
87
|
|
- select ptq.paperid,ptq.questionid,ptq.ptqorder,q.qtypename,ptq.ptqscore totalscore,q.qanswer,truncate(avg(psq.stuscore),2)avgscore
|
|
87
|
+ select ptq.paperid,ptq.questionid,ptq.ptqorder,ptq.questionpid
|
|
88
|
+ ,group_concat(distinct concat(ptq.qn,'_',ptq.questionid))qns
|
|
89
|
+ ,ptq.mqtypename qtypename,ptq.mscore totalscore,truncate(avg(psq.stuscore),2)avgscore
|
88
|
90
|
,truncate(avg(psq.costtime),2)avgtime,min(psq.costtime)mintime,count(ps.psid)stunum
|
89
|
91
|
,truncate(sum(case when psq.answered=1 then 1 else 0 end)*100/count(ps.psid),2)commitrate
|
90
|
92
|
,truncate(SUM(IFNULL(psq.stuscore,0))*100/(ptq.ptqscore*count(ps.psid)),2)scorerate
|
|
@@ -95,7 +97,7 @@
|
95
|
97
|
<if test="papertype==3">
|
96
|
98
|
and locate(concat('"',ptq.questionid,'"'),ps.questionids)>0
|
97
|
99
|
</if>
|
98
|
|
- group by ptq.questionid order by ptq.ptqorder
|
|
100
|
+ group by ptq.ptqorder order by ptq.ptqorder
|
99
|
101
|
</select>
|
100
|
102
|
<!--答题卡作业统计按题-->
|
101
|
103
|
<select id="getSQuestionAnalyze" resultType="com.xhkjedu.sstudy.vo.paper.AnalyzeQuestionVo">
|
|
@@ -116,11 +118,11 @@
|
116
|
118
|
|
117
|
119
|
<select id="getQuestionDetailAnalyze" resultType="com.xhkjedu.sstudy.vo.paper.QuestionAnalyzeVo">
|
118
|
120
|
select q.qtypename,q.qstem,q.qoption,q.qanswer,q.qanalyze,q.ctype
|
119
|
|
- ,(select ptq.ptqscore from t_paper_qtype_question ptq
|
120
|
|
- where ptq.paperid=#{paperid} and ptq.questionid=#{questionid}) score
|
|
121
|
+ ,(select ptq.mscore from t_paper_qtype_question ptq
|
|
122
|
+ where ptq.paperid=#{question.paperid} and ptq.questionpid=#{question.questionpid} limit 1) score
|
121
|
123
|
,(select group_concat(p.pointname separator ' ') from t_question_point qp
|
122
|
124
|
left join t_point p on qp.pointid=p.pointid where qp.questionid=q.questionid)pointname
|
123
|
|
- from t_question q where q.questionid=#{questionid}
|
|
125
|
+ from t_question q where q.questionid=#{question.questionpid}
|
124
|
126
|
</select>
|
125
|
127
|
<!--作业统计-按题详情-学生列表-->
|
126
|
128
|
<select id="listQuestionStu" resultType="com.xhkjedu.sstudy.vo.paper.AnalyzeStudentVo">
|