lirong %!s(int64=2) %!d(string=hai) anos
pai
achega
843e2c747b

+ 10 - 8
ibms-data-sdk/src/main/java/com/persagy/ibms/data/sdk/service/rest/RestUtil.java

@@ -211,14 +211,16 @@ public class RestUtil {
                 }
             }
 
-            if (failure_points.size() > 0) {
-                result.put("result", "failure");
-                result.put("failure_points", failure_points);
-                result.put("failure_count", failure_points.size());
-            } else if (success_points.size() > 0) {
-                result.put("result", "success");
-                result.put("success_count", success_points.size());
-                result.put("success_points", success_points);
+            if (points.size() > 0) {
+                if (failure_points.size() > 0) {
+                    result.put("result", "failure");
+                    result.put("failure_points", failure_points);
+                    result.put("failure_count", failure_points.size());
+                } else {
+                    result.put("result", "success");
+                    result.put("success_count", success_points.size());
+                    result.put("success_points", success_points);
+                }
             } else {
                 result.put("result", "failure");
                 result.put("remark", "暂无可控点位");