|
@@ -1,6 +1,5 @@
|
1
|
1
|
package com.xhkjedu.sexam.service.report;
|
2
|
2
|
|
3
|
|
-import ch.qos.logback.core.net.SyslogOutputStream;
|
4
|
3
|
import com.alibaba.fastjson.JSON;
|
5
|
4
|
import com.xhkjedu.sexam.mapper.exam.EClassMapper;
|
6
|
5
|
import com.xhkjedu.sexam.mapper.paper.EPaperAnalyzeMapper;
|
|
@@ -966,12 +965,14 @@ public class EReportGenerateService {
|
966
|
965
|
String goalparam = "0.2";
|
967
|
966
|
ERstudent rg = stuRankGoals.stream().filter(s -> s.getStudentid().equals(cs.getStudentid())
|
968
|
967
|
&& s.getSubjectid().equals(cs.getSubjectid())).findFirst().orElse(null);
|
969
|
|
- Integer goal = 0;
|
970
|
|
- Integer nextgoal = 0;
|
|
968
|
+ Integer goal = cs.getSchoolrank();
|
|
969
|
+ Integer nextgoal = ExamUtil.getUserGroupGoalByParam(schoolrank, goalparam);
|
|
970
|
+ Integer classrankpre = 0;
|
971
|
971
|
if (rg != null) {
|
972
|
972
|
goal = rg.getNextgoal();
|
973
|
|
- nextgoal = ExamUtil.getUserGroupGoalByParam(schoolrank, goalparam);
|
|
973
|
+ classrankpre = cs.getClassrank() - rg.getClassrank();
|
974
|
974
|
}
|
|
975
|
+ cs.setClassrankpre(classrankpre);
|
975
|
976
|
cs.setGoal(goal);
|
976
|
977
|
cs.setNextgoal(nextgoal);
|
977
|
978
|
}
|