Browse Source

学科成绩显示科目名称

tags/正式版本
雍文秀 2 years ago
parent
commit
c6490b7450

+ 1
- 1
sexam/src/main/resources/mapper/report/ERclassMapper.xml View File

@@ -17,7 +17,7 @@
17 17
         select er.allscore,er.classmaxscore,er.classminscore,er.classavgscore,er.schoolmaxscore,er.schoolavgscore
18 18
         ,er.stunum,er.missnum,er.yxrate,er.lhrate,er.jgrate,er.dfrate,er.bzc
19 19
         ,er.classid,(case when er.classid=0 then '全部班级' else ec.classname end)classname
20
-        ,(case when er.subjectid='zf' then '' else (select s.subjectname from t_subject s where
20
+        ,(case when er.subjectid='zf' then '总分' else (select s.subjectname from t_subject s where
21 21
                 er.subjectid=s.subjectid) end)subjectname
22 22
         from e_rclass er left join e_class ec on er.examid = ec.examid and er.classid = ec.classid
23 23
         where er.examid=#{examid} and er.classid=#{classid}

+ 3
- 1
sexam/src/main/resources/mapper/report/ERclassRankMapper.xml View File

@@ -18,8 +18,10 @@
18 18
     <select id="listByExamAndClassId" resultType="java.util.Map">
19 19
         select err.ranktype,err.rankname,err.rankrange,err.stunum,err.stujson,err.sturate
20 20
         ,err.classid,(case when err.classid=0 then '全部班级' else ec.classname end)classname
21
+        ,(case when err.subjectid='zf' then '总分' else (select s.subjectname from t_subject s where
22
+        err.subjectid=s.subjectid) end)subjectname
21 23
         from e_rclass_rank err left join e_class ec on err.examid = ec.examid and err.classid = ec.classid
22
-        where err.examid=#{rank.examid} and and err.classid=#{rank.classid}
24
+        where err.examid=#{rank.examid} and err.classid=#{rank.classid}
23 25
         <if test="rank.ranktype!=null and rank.ranktype!=0">
24 26
             and err.ranktype=#{rank.ranktype}
25 27
         </if>

Loading…
Cancel
Save