diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/dto/DeviceAttrDTO.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/dto/DeviceAttrDTO.java index 94f6458..47dc143 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/dto/DeviceAttrDTO.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/dto/DeviceAttrDTO.java @@ -1,5 +1,6 @@ package com.hnac.gglm.bigmodel.maintenance.dto; +import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -8,23 +9,30 @@ public class DeviceAttrDTO { @ApiModelProperty("item") + @JsonProperty("item_id") private String itemId; @ApiModelProperty("站点名称") + @JsonProperty("station_name") private String stationName; @ApiModelProperty("站点ID") + @JsonProperty("station_id") private String stationId; @ApiModelProperty("遥控的设备名称") + @JsonProperty("device_name") private String deviceName; @ApiModelProperty("遥控的设备ID") + @JsonProperty("device_id") private String deviceId; @ApiModelProperty("记录名称") + @JsonProperty("record_name") private String recordName; @ApiModelProperty("取数规则") + @JsonProperty("rule") private String rule; } diff --git a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/dto/DeviceFuncDTO.java b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/dto/DeviceFuncDTO.java index 44cc106..7707447 100644 --- a/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/dto/DeviceFuncDTO.java +++ b/hzims-service/gglm-big-model/src/main/java/com/hnac/gglm/bigmodel/maintenance/dto/DeviceFuncDTO.java @@ -1,5 +1,6 @@ package com.hnac.gglm.bigmodel.maintenance.dto; +import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModelProperty; import lombok.Data; @@ -8,21 +9,27 @@ import lombok.Data; public class DeviceFuncDTO { @ApiModelProperty("item") + @JsonProperty("item_id") private String itemId; @ApiModelProperty("站点名称") + @JsonProperty("station_name") private String stationName; @ApiModelProperty("站点ID") + @JsonProperty("station_id") private String stationId; @ApiModelProperty("遥控的设备名称") + @JsonProperty("device_name") private String deviceName; @ApiModelProperty("遥控的设备ID") + @JsonProperty("device_id") private String deviceId; @ApiModelProperty("遥控名称") + @JsonProperty("yk_name") private String ykName; }