Bläddra i källkod

1.1.0 update-20250108,59分减1未生效问题

xiaofei 6 månader sedan
förälder
incheckning
89b5dffafa
1 ändrade filer med 5 tillägg och 0 borttagningar
  1. 5 0
      src/main/java/com/qmth/eds/service/impl/WhuDataSyncServiceImpl.java

+ 5 - 0
src/main/java/com/qmth/eds/service/impl/WhuDataSyncServiceImpl.java

@@ -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";