|
@@ -9,6 +9,7 @@ import com.xhkjedu.sexam.mapper.paper.EPaperFileMapper;
|
9
|
9
|
import com.xhkjedu.sexam.mapper.paper.EPaperMapper;
|
10
|
10
|
import com.xhkjedu.sexam.mapper.reportclass.ERclassRankMapper;
|
11
|
11
|
import com.xhkjedu.sexam.mapper.reportstu.ERstudentMapper;
|
|
12
|
+import com.xhkjedu.sexam.mapper.system.UserMapper;
|
12
|
13
|
import com.xhkjedu.sexam.model.exam.EBase;
|
13
|
14
|
import com.xhkjedu.sexam.utils.ExamUtil;
|
14
|
15
|
import com.xhkjedu.sexam.vo.report.ERankParamVo;
|
|
@@ -44,6 +45,8 @@ public class EReportStudentService {
|
44
|
45
|
private EPaperAnalyzeMapper ePaperAnalyzeMapper;
|
45
|
46
|
@Resource
|
46
|
47
|
private ERclassRankMapper eRclassRankMapper;
|
|
48
|
+ @Resource
|
|
49
|
+ private UserMapper userMapper;
|
47
|
50
|
|
48
|
51
|
/**
|
49
|
52
|
* @Description 获取考试基本信息(科目、班级、班级下学生)
|
|
@@ -65,7 +68,11 @@ public class EReportStudentService {
|
65
|
68
|
Map map = eBaseMapper.findById(examid);
|
66
|
69
|
List<Map> subjects = eSubjectMapper.listSubjectAndPnum(examid);
|
67
|
70
|
map.put("subjects", subjects);
|
68
|
|
- List<Map> classes = eClassMapper.listExamClassAndStuForTeacher(examid,userid);
|
|
71
|
+
|
|
72
|
+ //获取当前用户所属学校id
|
|
73
|
+ Integer schoolid = userMapper.getSchoolidByUserid(userid);
|
|
74
|
+
|
|
75
|
+ List<Map> classes = eClassMapper.listExamClassAndStuForTeacher(examid,userid,schoolid);
|
69
|
76
|
map.put("classes", classes);
|
70
|
77
|
return map;
|
71
|
78
|
}
|