Browse Source

监考设置列表

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

+ 1
- 1
sexam/src/main/java/com/xhkjedu/sexam/mapper/exam/ESubjectInvigilateMapper.java View File

12
     void delByEsId(@Param("esid") Integer esid);
12
     void delByEsId(@Param("esid") Integer esid);
13
 
13
 
14
     //监考设置列表
14
     //监考设置列表
15
-    List<Map> listSubject(@Param("examid") Integer examid, @Param("classnum") Integer classnum);
15
+    List<Map> listSubject(@Param("examid") Integer examid);
16
 
16
 
17
     //考试监考人
17
     //考试监考人
18
     List<Map> listByEsId(@Param("esid") Integer esid);
18
     List<Map> listByEsId(@Param("esid") Integer esid);

+ 1
- 2
sexam/src/main/java/com/xhkjedu/sexam/service/exam/ESubjectInvigilateService.java View File

42
     //监考设置列表
42
     //监考设置列表
43
     public Map listSubject(Integer examid) {
43
     public Map listSubject(Integer examid) {
44
         Map map = eBaseMapper.findById(examid);
44
         Map map = eBaseMapper.findById(examid);
45
-        Integer classnum = eClassMapper.getClassNumByExamId(examid);//获取考试班级数量
46
-        List<Map> subjects = eSubjectInvigilateMapper.listSubject(examid, classnum);//监考设置列表
45
+        List<Map> subjects = eSubjectInvigilateMapper.listSubject(examid);//监考设置列表
47
         map.put("subjects", subjects);
46
         map.put("subjects", subjects);
48
         return map;
47
         return map;
49
     }
48
     }

+ 1
- 1
sexam/src/main/resources/mapper/exam/ESubjectInvigilateMapper.xml View File

10
         select s.*,ifnull(ep.pnum,0)pnum,ifnull(ep.pscore,0)pscore,ep.correcttype
10
         select s.*,ifnull(ep.pnum,0)pnum,ifnull(ep.pscore,0)pscore,ep.correcttype
11
         from (select s.esid,s.subjectid,s.sdate,s.begintime,s.endtime,s.esstate,s.subjectname
11
         from (select s.esid,s.subjectid,s.sdate,s.begintime,s.endtime,s.esstate,s.subjectname
12
         ,group_concat(u.username separator '、')majorname
12
         ,group_concat(u.username separator '、')majorname
13
-        ,#{classnum}-count(DISTINCT ei.classid) einum
13
+        ,count(DISTINCT ei.classid) einum
14
         from e_subject s left join e_subject_invigilate ei on ei.esid=s.esid
14
         from e_subject s left join e_subject_invigilate ei on ei.esid=s.esid
15
         left join t_user u on u.userid=ei.teacherid and ei.majored=1
15
         left join t_user u on u.userid=ei.teacherid and ei.majored=1
16
         where s.examid=#{examid} group by s.esid)s left join e_paper ep on s.esid = ep.esid
16
         where s.examid=#{examid} group by s.esid)s left join e_paper ep on s.esid = ep.esid

Loading…
Cancel
Save