|
@@ -551,6 +551,7 @@ public class WhuDataSyncServiceImpl implements WhuDataSyncService {
|
|
|
|
|
|
private String roundScoreForFormula1(String assignScore, double studentScore, Coefficient coefficient) {
|
|
|
Boolean openRound = coefficient.getOpenRound();
|
|
|
+ Boolean open59To58 = coefficient.getOpen59To58();
|
|
|
Boolean open54To53 = coefficient.getOpen54To53();
|
|
|
Boolean open54d5 = coefficient.getOpen54d5();
|
|
|
int intValue = new BigDecimal(assignScore).setScale(0, RoundingMode.FLOOR).intValue();
|
|
@@ -558,6 +559,10 @@ public class WhuDataSyncServiceImpl implements WhuDataSyncService {
|
|
|
if (openRound && intValue == 59) {
|
|
|
return "60";
|
|
|
}
|
|
|
+ // 分数=59,减1为58
|
|
|
+ else if (open59To58 && intValue == 59) {
|
|
|
+ return "58";
|
|
|
+ }
|
|
|
// 赋分后等于54分调整赋分分值为53
|
|
|
else if (open54To53 && intValue == 54) {
|
|
|
return "53";
|