|
@@ -1,5 +1,6 @@
|
|
package org.diagbot.graphWeb.work;
|
|
package org.diagbot.graphWeb.work;
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONArray;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import org.diagbot.common.javabean.MangementEvaluation;
|
|
import org.diagbot.common.javabean.MangementEvaluation;
|
|
@@ -53,19 +54,10 @@ public class GraphCalculate {
|
|
for (Map.Entry<String, Map<String,String>> d : condition.entrySet()) {
|
|
for (Map.Entry<String, Map<String,String>> d : condition.entrySet()) {
|
|
if (!"低血糖反应".equals(d.getKey()) && !"胃肠道不良反应".equals(d.getKey())) {
|
|
if (!"低血糖反应".equals(d.getKey()) && !"胃肠道不良反应".equals(d.getKey())) {
|
|
FeatureRate featureRate = new FeatureRate();
|
|
FeatureRate featureRate = new FeatureRate();
|
|
- String s="";
|
|
|
|
featureRate.setFeatureName(d.getKey());
|
|
featureRate.setFeatureName(d.getKey());
|
|
featureRate.setExtraProperty("");
|
|
featureRate.setExtraProperty("");
|
|
Map<String, String> value = d.getValue();
|
|
Map<String, String> value = d.getValue();
|
|
- Set<String> keys = value.keySet();
|
|
|
|
- Object[] objects = keys.toArray();
|
|
|
|
- for (int i=0;i<objects.length;i++) {
|
|
|
|
- if(i != objects.length-1){
|
|
|
|
- s = s + objects[i].toString()+",";
|
|
|
|
- }else {
|
|
|
|
- s += objects[i].toString();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ String s = JSON.toJSONString(value);
|
|
featureRate.setDesc(s);
|
|
featureRate.setDesc(s);
|
|
featureRate.setRate("neo4j");
|
|
featureRate.setRate("neo4j");
|
|
featureRates.add(featureRate);
|
|
featureRates.add(featureRate);
|