Explorar el Código

监考设置列表

tags/正式版本
雍文秀 hace 2 años
padre
commit
30fd6291d3

+ 1
- 1
sexam/src/main/java/com/xhkjedu/sexam/mapper/exam/ESubjectInvigilateMapper.java Ver fichero

@@ -12,7 +12,7 @@ public interface ESubjectInvigilateMapper extends TkMapper<ESubjectInvigilate> {
12 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 18
     List<Map> listByEsId(@Param("esid") Integer esid);

+ 1
- 2
sexam/src/main/java/com/xhkjedu/sexam/service/exam/ESubjectInvigilateService.java Ver fichero

@@ -42,8 +42,7 @@ public class ESubjectInvigilateService {
42 42
     //监考设置列表
43 43
     public Map listSubject(Integer examid) {
44 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 46
         map.put("subjects", subjects);
48 47
         return map;
49 48
     }

+ 1
- 1
sexam/src/main/resources/mapper/exam/ESubjectInvigilateMapper.xml Ver fichero

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

Loading…
Cancelar
Guardar