|
@@ -84,34 +84,15 @@ public class EReportStudentService {
|
84
|
84
|
List<Map> list = eRstudentMapper.getStudentScoreByExamid(examid, studentid);
|
85
|
85
|
Map rtnmap = new LinkedHashMap();
|
86
|
86
|
|
87
|
|
- Integer classid = null;
|
88
|
87
|
if (list != null && list.size() > 0) {
|
89
|
88
|
Map map1 = list.get(0);
|
90
|
|
- classid = Integer.parseInt(map1.get("classid").toString());
|
|
89
|
+ Integer classid = Integer.parseInt(map1.get("classid").toString());
|
91
|
90
|
|
92
|
|
- }else{
|
93
|
|
- //获取学生关联班级id
|
94
|
|
- classid = eClassStudentMapper.getClassidByStudentidAndExamid(examid,studentid);
|
95
|
|
- Map smap = eRstudentMapper.getStudentScoreByExamidForNo(examid,classid);
|
96
|
|
- if(smap != null){
|
97
|
|
- smap.put("score",0);
|
98
|
|
- smap.put("bzscore",0);
|
99
|
|
- smap.put("classrank",0);
|
100
|
|
- smap.put("classrankpre",0);
|
101
|
|
- smap.put("schoolrank",0);
|
102
|
|
- smap.put("goal",0);
|
103
|
|
- smap.put("nextgoal",0);
|
104
|
|
- smap.remove("rsid");
|
105
|
|
- smap.remove("studentid");
|
106
|
|
-
|
107
|
|
- list = new ArrayList<>();
|
108
|
|
- list.add(smap);
|
109
|
|
- }
|
|
91
|
+ Map gcnum = eRstudentMapper.getStudentNumByExamid(examid, classid);
|
|
92
|
+ rtnmap.put("classnum", gcnum.get("classnum").toString());
|
|
93
|
+ rtnmap.put("gradenum", gcnum.get("gradenum").toString());
|
110
|
94
|
}
|
111
|
95
|
rtnmap.put("subjects", list);
|
112
|
|
- Map gcnum = eRstudentMapper.getStudentNumByExamid(examid, classid);
|
113
|
|
- rtnmap.put("classnum", gcnum.get("classnum").toString());
|
114
|
|
- rtnmap.put("gradenum", gcnum.get("gradenum").toString());
|
115
|
96
|
return rtnmap;
|
116
|
97
|
}
|
117
|
98
|
|