Procházet zdrojové kódy

获取控制值bug修复

lirong před 2 roky
rodič
revize
64fdd347d4

+ 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 {