|
@@ -24,8 +24,7 @@
|
24
|
24
|
<select id="listByExamAndClassId" resultType="java.util.Map">
|
25
|
25
|
select err.ranktype,err.rankname,err.rankrange,err.stunum,err.stujson,err.sturate
|
26
|
26
|
,err.classid,(case when err.classid=0 then '全部班级' else ec.classname end)classname
|
27
|
|
- ,(case when err.subjectid='zf' then '总分' else (select s.subjectname from t_subject s where
|
28
|
|
- err.subjectid=s.subjectid) end)subjectname
|
|
27
|
+ ,err.subjectid
|
29
|
28
|
from e_rclass_rank err left join e_class ec on err.examid = ec.examid and err.classid = ec.classid
|
30
|
29
|
where err.examid=#{rank.examid} and err.classid=#{rank.classid}
|
31
|
30
|
<if test="rank.ranktype!=null and rank.ranktype!=0">
|
|
@@ -37,7 +36,7 @@
|
37
|
36
|
</select>
|
38
|
37
|
<!--班级报告-单科概况-等级统计-->
|
39
|
38
|
<select id="listDkGkDjTj" resultType="java.util.Map">
|
40
|
|
- select err.ranktype,err.rankname,err.stunum,err.stujson,err.sturate
|
|
39
|
+ select err.ranktype,err.rankname,err.stunum,err.stujson,err.sturate,er.minscore,er.maxscore
|
41
|
40
|
,(case when er.linescore is null then '' else concat(er.linescore,'-',er.floatscore) end)rankrange
|
42
|
41
|
from e_rclass_rank err left join e_rrank er on err.examid = er.examid and err.subjectid = er.subjectid
|
43
|
42
|
and er.ranktype=1 and er.rankname=err.rankname
|
|
@@ -56,4 +55,12 @@
|
56
|
55
|
</if>
|
57
|
56
|
limit 1
|
58
|
57
|
</select>
|
|
58
|
+ <!--获取科目集合-->
|
|
59
|
+ <select id="listSubjectByIds" resultType="java.util.Map">
|
|
60
|
+ select subjectid,subjectname,subjectorder
|
|
61
|
+ from t_subject where subjectid in
|
|
62
|
+ <foreach collection="subjectids" item="subjectid" open="(" separator="," close=")">
|
|
63
|
+ #{subjectid}
|
|
64
|
+ </foreach>
|
|
65
|
+ </select>
|
59
|
66
|
</mapper>
|