updates
This commit is contained in:
parent
cf9ca0f265
commit
e7ba0bc3be
|
|
@ -75,6 +75,10 @@ public class ScoreUtil {
|
|||
BigDecimal controlLine = null;//文科-省控线
|
||||
BigDecimal admissionLine = null;//文科-录取线
|
||||
for (YxHistoryMajorEnroll yxHistoryMajorEnroll : historyMajorEnrollList) {
|
||||
if (yearNum>=1&& !yxHistoryMajorEnroll.getRulesEnrollProbability().equals(rulesEnrollProbability)) {
|
||||
//如果仅两年的录取原则一样,后面的不一样,不使用较旧的分数
|
||||
continue;
|
||||
}
|
||||
controlLine = yxHistoryMajorEnroll.getControlLine();
|
||||
admissionLine = yxHistoryMajorEnroll.getAdmissionLine();
|
||||
if (admissionLine.compareTo(YxConstant.bigDecimal0) <=0) {
|
||||
|
|
@ -92,9 +96,7 @@ public class ScoreUtil {
|
|||
}
|
||||
sum=sum.add(nowSum);//录取线-省控线
|
||||
yearNum++;
|
||||
/*if (yxHistoryMajorEnroll.getRulesEnrollProbability().replace("+","").equals(rulesEnrollProbability.replace("+",""))) {
|
||||
|
||||
}*/
|
||||
}
|
||||
if (yearNum!=0) {
|
||||
BigDecimal divide = sum.divide(new BigDecimal(yearNum), 4, RoundingMode.HALF_UP);
|
||||
|
|
|
|||
Loading…
Reference in New Issue