diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/vo/DeviceModelData.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/vo/DeviceModelData.java index 9385b1f..7bebc16 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/vo/DeviceModelData.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/business/vo/DeviceModelData.java @@ -139,23 +139,23 @@ public class DeviceModelData { /** * 类型,0:属性,1:功能,2:事件 */ - private Integer type; + private String type; public static DeviceModelData of(ModelAttrVO data) { DeviceModelData deviceModelData = Func.copyProperties(data, DeviceModelData.class); - deviceModelData.setType(0); + deviceModelData.setType("0"); return deviceModelData; } public static DeviceModelData of(ModelFuncVO data) { DeviceModelData deviceModelData = Func.copyProperties(data, DeviceModelData.class); - deviceModelData.setType(1); + deviceModelData.setType("1"); return deviceModelData; } public static DeviceModelData of(ModelEventVO data) { DeviceModelData deviceModelData = Func.copyProperties(data, DeviceModelData.class); - deviceModelData.setType(2); + deviceModelData.setType("2"); return deviceModelData; } }