瀏覽代碼

对接修改

rengb 5 年之前
父節點
當前提交
8d5c65e7d9
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9 0
      kernel/src/main/java/com/lantone/qc/kernel/analysis/QCAnalysis.java

+ 9 - 0
kernel/src/main/java/com/lantone/qc/kernel/analysis/QCAnalysis.java

@@ -1,5 +1,6 @@
 package com.lantone.qc.kernel.analysis;
 
+import com.google.common.collect.Maps;
 import com.lantone.qc.kernel.client.CRFServiceClient;
 import com.lantone.qc.kernel.client.SimilarityServiceClient;
 import com.lantone.qc.kernel.structure.ai.AIAnalyze;
@@ -48,6 +49,14 @@ public class QCAnalysis {
             CatalogueUtil.qcCatalogueMap.get(entry.getKey()).execute(inputInfo, outputInfo);
         }
         outputInfo.setPageData(inputInfo.getPageData());
+        Map<String, Map<String, String>> result = outputInfo.getResult();
+        Map<String, Map<String, String>> resultNew = Maps.newHashMap();
+        result.keySet().forEach(key->{
+            if (result.get(key).get("status").equals("-1")) {
+                resultNew.put(key,result.get(key));
+            }
+        });
+        outputInfo.setResult(resultNew);
         return outputInfo;
     }
 }