瀏覽代碼

指标推送GRF值和结论调换位置

kongwz 6 年之前
父節點
當前提交
afeb0cc0d3
共有 1 個文件被更改,包括 2 次插入3 次删除
  1. 2 3
      graph/src/main/java/org/diagbot/graph/jdbc/Neo4jAPI.java

+ 2 - 3
graph/src/main/java/org/diagbot/graph/jdbc/Neo4jAPI.java

@@ -1423,7 +1423,7 @@ public class Neo4jAPI {
                 List<JSONObject> sexList = null;
                 List<JSONObject> shiFouList = null;
                 JSONObject shiFouJson = null;
-                Set<String> results = new HashSet<>();
+                Set<String> results = new LinkedHashSet<>();
                 query = "match(d:Indicators{name:'" + s + "'})-[r2:内容]->(n:Content) where r2.p=1 \n" +
                         "return r2.p as sort1 ,n.name as conten,null as sort2,null as item,null as controlType,null as state,null as value,null as uint,null as details\n" +
                         "union\n" +
@@ -1533,8 +1533,7 @@ public class Neo4jAPI {
                         medicalIndicationDetail3.setContent(shiFouJson);
                     }
                 }
-                for (String re : results
-                        ) {
+                for (String re : results) {
                     JSONObject result1 = new JSONObject();
                     result1.put("name", re);
                     result1.put("text", "");