|
@@ -67,7 +67,7 @@ public class ControlUtil {
|
|
|
if (first_info_value == null) {
|
|
|
first_info_value = info_value;
|
|
|
} else {
|
|
|
- if (!first_info_value.equals(info_value)) {
|
|
|
+ if (!first_info_value.toString().equals(info_value)) {
|
|
|
all_equal = false;
|
|
|
break;
|
|
|
}
|
|
@@ -314,6 +314,8 @@ public class ControlUtil {
|
|
|
|
|
|
private static void saveBatchOperationLog(JSONArray postParam) throws Exception {
|
|
|
String post_url = Constant.zkt_control_url + "/operationLog/saveBatchOperationLog";
|
|
|
+ System.out.println("保存日志url:"+post_url );
|
|
|
+ System.out.println("保存日志boby:"+postParam.toJSONString() );
|
|
|
String post_result = HttpClientUtil.instance("zkt_control").post(post_url, postParam.toJSONString());
|
|
|
JSONObject result = JSON.parseObject(post_result);
|
|
|
log.debug(result.toJSONString());
|
|
@@ -397,7 +399,10 @@ public class ControlUtil {
|
|
|
if (Constant.control_mode.equals("sync")) {
|
|
|
String post_url = Constant.iot_project_url + "/sync_pointsetbatch_post";
|
|
|
log.debug(postJSON.toJSONString());
|
|
|
+ System.out.println("url1:"+post_url);
|
|
|
+ System.out.println("boby1:"+postJSON.toJSONString());
|
|
|
String post_result = HttpClientUtil.instance("iot_project").post(post_url, postJSON.toJSONString());
|
|
|
+ System.out.println("result1:"+postJSON.toJSONString());
|
|
|
JSONObject result = JSON.parseObject(post_result);
|
|
|
JSONArray result_points = (JSONArray) result.get("points");
|
|
|
log.debug(post_result);
|
|
@@ -406,6 +411,9 @@ public class ControlUtil {
|
|
|
String post_url = Constant.iot_project_url + "/pointsetbatch_post";
|
|
|
log.debug(postJSON.toJSONString());
|
|
|
String post_result = HttpClientUtil.instance("iot_project").post(post_url, postJSON.toJSONString());
|
|
|
+ System.out.println("url1:"+post_url);
|
|
|
+ System.out.println("boby1:"+postJSON.toJSONString());
|
|
|
+ System.out.println("result2:"+postJSON.toJSONString());
|
|
|
JSONObject result = JSON.parseObject(post_result);
|
|
|
JSONArray result_points = (JSONArray) result.get("points");
|
|
|
for (int i = 0; i < result_points.size(); i++) {
|