Explorar el Código

症状推送结果NULL字符串过滤

louhr hace 6 años
padre
commit
09aa593799

+ 1 - 1
bigdata-web/src/main/java/org/diagbot/bigdata/work/ResultDataProxy.java

@@ -131,7 +131,7 @@ public class ResultDataProxy {
         float threshold = 0.001f;
         Map<String, Float> thresholdMap = new HashMap<>();
         for (Map.Entry<String, Float> entry : map.entrySet()) {
-            if (entry.getValue() >= threshold) {
+            if (!"null".equals(entry.getKey()) && entry.getValue() >= threshold) {
                 thresholdMap.put(entry.getKey(), entry.getValue());
             }
         }