Browse Source

评分计算修改

lmstack 3 years ago
parent
commit
5c805ab6b1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/main/java/com/lm/lib/controller/ShowDataController.java

+ 3 - 3
src/main/java/com/lm/lib/controller/ShowDataController.java

@@ -225,9 +225,9 @@ public Map<String, Object> gpsInfo() throws IOException {
                 Double soh = sohData == null ? Double.parseDouble(lastData.get("soh").toString()) : Double.parseDouble(sohData.get("soh").toString());
 
                 lastData.put("error_level", lastData.get("error_level") == null ? 0 : lastData.get("error_level"));
-                score = (soh * soh * 14.0 / 100.0 + (4 - (Integer) lastData.get("error_level") * 24 * 5) + 1 * 100 * 0.1
-                        + (((300 - (Double.parseDouble(Collections.max(voltages)) - (Double.parseDouble(Collections.min(voltages))))) / 3) *
-                        ((300 - (Double.parseDouble(Collections.max(voltages)) - (Double.parseDouble(Collections.min(voltages))))) / 3) * 6 / 100)) / 25;
+                score = (soh * soh * 14.0 / 100.0 + (4 - (Integer) lastData.get("error_level") * 25 * 5) + 1 * 100 * 0.1
+                        + (((600 - (Double.parseDouble(Collections.max(voltages)) - (Double.parseDouble(Collections.min(voltages))))) / 6) *
+                        ((600 - (Double.parseDouble(Collections.max(voltages)) - (Double.parseDouble(Collections.min(voltages))))) / 6) * 6 / 100)) / 25.1;
 
                 rspRealTimeInfo.setScore(score.toString());
                 if (((Integer) lastData.get("charge_state")).equals(0)) {