瀏覽代碼

获取控制值bug修复

lirong 2 年之前
父節點
當前提交
64fdd347d4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      ibms-data-sdk/src/main/java/com/persagy/ibms/data/sdk/util/ControlUtil.java

+ 2 - 2
ibms-data-sdk/src/main/java/com/persagy/ibms/data/sdk/util/ControlUtil.java

@@ -57,13 +57,13 @@ public class ControlUtil {
 		for (String info_code : all_info_code.keySet()) {
 			boolean all_exist = true;
 			boolean all_equal = true;
-			Integer first_info_value = null;
+			Object first_info_value = null;
 			for (SceneDataObject object : sdoList) {
 				if (!object.containsKey(info_code)) {
 					all_exist = false;
 					break;
 				}
-				int info_value = (int) object.get(info_code).value_prim.value;
+				Object info_value = object.get(info_code).value_prim.value;
 				if (first_info_value == null) {
 					first_info_value = info_value;
 				} else {