Browse Source

首页考试报告组件

tags/正式3.14.0
雍文秀 5 months ago
parent
commit
339e60aa25
1 changed files with 3 additions and 4 deletions
  1. 3
    4
      sapi/src/main/resources/mapper/component/ComponentMapper.xml

+ 3
- 4
sapi/src/main/resources/mapper/component/ComponentMapper.xml View File

@@ -520,7 +520,7 @@
520 520
     <select id="getExamReportSchoolBase" resultType="java.util.Map">
521 521
         select re.classnum,re.stunum,re.missnum,re.subjectnum,re.maxscore,re.avgscore,re.mixscore,
522 522
         e.examid,e.teashowrank,e.examstate,e.examname from e_base e left join e_rbase re on e.examid=re.examid
523
-        where e.schoolid=#{schoolid} and e.deleted=1 order by examdate desc limit 1
523
+        where e.schoolid=#{schoolid} and e.deleted=1 and e.examstate=3 order by examdate desc limit 1
524 524
     </select>
525 525
     <!--考试-校级报告-成绩概况-->
526 526
     <select id="listExamReportSchoolStatistic" resultType="java.util.Map">
@@ -542,7 +542,7 @@
542 542
         select e.examid,e.examname,e.teashowrank,e.examstate,c.classid,c.classname
543 543
         from e_base e left join e_class c on e.examid=c.examid
544 544
         left join t_class_teacher ct on c.classid=ct.classid
545
-        where e.deleted=1 and c.schoolid=#{params.schoolid} and ct.teacherid=#{params.userid}
545
+        where e.deleted=1 and e.examstate=3 and c.schoolid=#{params.schoolid} and ct.teacherid=#{params.userid}
546 546
         group by e.examid order by e.examdate desc,e.examid desc,c.ecid limit 1
547 547
     </select>
548 548
     <!--考试-班级报告-学科成绩对比-->
@@ -564,8 +564,7 @@
564 564
         left join t_teacher_powersb tp on tp.teacherid=#{params.userid} and tp.subjectid=s.subjectid
565 565
         left join e_class c on e.examid=c.examid
566 566
         left join t_class_teacher ct on c.classid=ct.classid and tp.teacherid=ct.teacherid
567
-        where e.deleted=1 and c.schoolid=#{params.schoolid} and ct.teacherid=#{params.userid}
568
-
567
+        where e.deleted=1 and e.examstate=3 and c.schoolid=#{params.schoolid} and ct.teacherid=#{params.userid}
569 568
         group by e.examid order by e.examdate desc,e.examid desc,c.ecid limit 1
570 569
     </select>
571 570
     <!--考试-单科报告-单科概况-->

Loading…
Cancel
Save