Browse Source

量表得分类型由int->float

hujing 6 years ago
parent
commit
720361d8f4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      graph/src/main/java/org/diagbot/graph/jdbc/Neo4jAPI.java

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

@@ -2038,7 +2038,7 @@ public class Neo4jAPI {
                             if (!"NULL".equals(option)) {
                                 JSONObject rowDetail = new JSONObject();
                                 rowDetail.put("detailName", option);
-                                rowDetail.put("score", Integer.valueOf(score));
+                                rowDetail.put("score", Float.valueOf(score));
                                 if (scaleItems.length > 0) {
                                     JSONArray scaleItem = (JSONArray) JSONArray.toJSON(scaleItems);
                                     for (int k = 0; k < scaleItem.size(); k++) {
@@ -2076,7 +2076,7 @@ public class Neo4jAPI {
                         if (!"NULL".equals(option)) {
                             JSONObject rowDetail = new JSONObject();
                             rowDetail.put("detailName", option);
-                            rowDetail.put("score", Integer.valueOf(score));
+                            rowDetail.put("score", Float.valueOf(score));
                             if (scaleItems.length > 0) {
                                 JSONArray scaleItem = (JSONArray) JSONArray.toJSON(scaleItems);
                                 for (int k = 0; k < scaleItem.size(); k++) {
@@ -2122,7 +2122,7 @@ public class Neo4jAPI {
                     if (!"NULL".equals(option)) {
                         JSONObject rowDetail = new JSONObject();
                         rowDetail.put("detailName", option);
-                        rowDetail.put("score", Integer.valueOf(score));
+                        rowDetail.put("score", Float.valueOf(score));
                         if (scaleItems.length > 0) {
                             JSONArray scaleItem = (JSONArray) JSONArray.toJSON(scaleItems);
                             for (int k = 0; k < scaleItem.size(); k++) {