|
@@ -964,30 +964,28 @@ public class EReportGenerateService {
|
964
|
964
|
ERrank eRrank = rranks.get(0);
|
965
|
965
|
if (ranktype == 1) {//等级(A[85%~100%],B[70%~85%),C[60%~70%),D[40%~60%),E[0%~40%))
|
966
|
966
|
for (ERrank rank : rranks) {
|
967
|
|
- Double maxrate = rank.getMaxscore();
|
968
|
|
- Double minrate = rank.getMinscore();
|
|
967
|
+ Double maxscore = rank.getMaxscore();
|
|
968
|
+ Double minscore = rank.getMinscore();
|
969
|
969
|
String rankname = rank.getRankname();
|
970
|
970
|
if ("zf".equals(subjectid)) {
|
971
|
971
|
//总分统计
|
972
|
|
- double zfmaxscore = ExamUtil.mul(maxrate, pscore);
|
973
|
|
- double zfminscore = ExamUtil.mul(minrate, pscore);
|
974
|
972
|
ERrank rr = new ERrank();
|
975
|
973
|
rr.setRanktype(ranktype);
|
976
|
974
|
rr.setRankname(rankname);
|
977
|
|
- rr.setMaxscore(zfmaxscore);
|
978
|
|
- rr.setMinscore(zfminscore);
|
|
975
|
+ rr.setMaxscore(maxscore);
|
|
976
|
+ rr.setMinscore(minscore);
|
979
|
977
|
rr.setSubjectid("zf");
|
980
|
|
- String zfrankrange = "[" + zfminscore + "," + zfmaxscore;
|
|
978
|
+ String zfrankrange = "[" + minscore + "," + maxscore;
|
981
|
979
|
List<ERstudent> collect;
|
982
|
980
|
if (rr.getRankname().equals("A")) {
|
983
|
981
|
zfrankrange = zfrankrange + "]";
|
984
|
982
|
collect = cstudents.stream().filter(
|
985
|
|
- s -> s.getScore().compareTo(zfminscore) != -1
|
|
983
|
+ s -> s.getScore().compareTo(minscore) != -1
|
986
|
984
|
).collect(Collectors.toList());
|
987
|
985
|
} else {
|
988
|
986
|
zfrankrange = zfrankrange + ")";
|
989
|
987
|
collect = cstudents.stream().filter(
|
990
|
|
- s -> s.getScore().compareTo(zfminscore) != -1 && s.getScore().compareTo(zfmaxscore) == -1
|
|
988
|
+ s -> s.getScore().compareTo(minscore) != -1 && s.getScore().compareTo(maxscore) == -1
|
991
|
989
|
).collect(Collectors.toList());
|
992
|
990
|
}
|
993
|
991
|
for (Map.Entry<Integer, List<ERstudent>> entry : zfcollect.entrySet()) {
|
|
@@ -1010,8 +1008,6 @@ public class EReportGenerateService {
|
1010
|
1008
|
rrank.setRanktype(ranktype);
|
1011
|
1009
|
rrank.setRankname(rankname);
|
1012
|
1010
|
rrank.setSubjectid(subjectid);
|
1013
|
|
- double maxscore = ExamUtil.mul(maxrate, pscore);
|
1014
|
|
- double minscore = ExamUtil.mul(minrate, pscore);
|
1015
|
1011
|
rrank.setMaxscore(maxscore);
|
1016
|
1012
|
rrank.setMinscore(minscore);
|
1017
|
1013
|
String rankrange = "[" + minscore + "," + maxscore;
|