|
@@ -378,8 +378,8 @@
|
378
|
378
|
</select>
|
379
|
379
|
<!--获取课堂考试列表-->
|
380
|
380
|
<select id="listPaper" resultType="com.xhkjedu.sclass.vo.classroom.ReportExamVo">
|
381
|
|
- SELECT p.paperid,p.papername,c.classid,truncate(SUM(ps.stuscore)*100/(p.paperscore*COUNT(ps.psid)),2)scorerate
|
382
|
|
- ,truncate(SUM(ps.stuscore)/COUNT(ps.psid),2)avgscore,MAX(ps.stuscore)maxscore,COUNT(ps.psid)ytjnum,0 wjtnum
|
|
381
|
+ SELECT p.paperid,p.papername,c.classid,ifnull(truncate(SUM(ps.stuscore)*100/(p.paperscore*COUNT(ps.psid)),2),0)scorerate
|
|
382
|
+ ,ifnull(truncate(SUM(ps.stuscore)/COUNT(ps.psid),2),0)avgscore,ifnull(MAX(ps.stuscore),0)maxscore,COUNT(ps.psid)ytjnum
|
383
|
383
|
FROM t_classroom_paper p
|
384
|
384
|
LEFT JOIN t_classroom_paper_student ps ON p.paperid=ps.paperid
|
385
|
385
|
LEFT JOIN t_classroom_askteacher rt ON p.paperid=rt.paperid
|