소스 검색

检验检查逻辑修改

louhr 6 년 전
부모
커밋
24612ede5c

+ 3 - 3
common-service/src/main/java/org/diagbot/common/work/SearchData.java

@@ -32,7 +32,7 @@ public class SearchData {
     protected String past = "";
     protected String other = "";
     //大数据推送诊断结果信息
-    protected List<String> pushDiags = new ArrayList<>();
+    protected List<FeatureRate> pushDiags = new ArrayList<>();
 
     //模型
     protected String algorithmClassifyValue;
@@ -215,11 +215,11 @@ public class SearchData {
         this.filters = filters;
     }
 
-    public List<String> getPushDiags() {
+    public List<FeatureRate> getPushDiags() {
         return pushDiags;
     }
 
-    public void setPushDiags(List<String> pushDiags) {
+    public void setPushDiags(List<FeatureRate> pushDiags) {
         this.pushDiags = pushDiags;
     }
 }

+ 2 - 2
push-web/src/main/java/org/diagbot/push/controller/AlgorithmController.java

@@ -80,9 +80,9 @@ public class AlgorithmController extends BaseController {
         }
 
         //推送出的诊断信息作为参数传入知识图谱
-        List<String> pushDiags = new ArrayList<>();
+        List<FeatureRate> pushDiags = new ArrayList<>();
         for (FeatureRate fr : bigDataResponseData.getDis()) {
-            pushDiags.add(fr.getFeatureName());
+            pushDiags.add(fr);
         }
         searchData.setPushDiags(pushDiags);