package com.qianwen.smartman.modules.smis.vo; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class DmpVariablesVO implements Serializable { private static final long serialVersionUID = -5852439219495925331L; @JsonSerialize(using = ToStringSerializer.class) @ApiModelProperty("主键") private Long id; @ApiModelProperty("DMP设备") private String dmpDeviceId; @JsonSerialize(using = ToStringSerializer.class) @ApiModelProperty("cps设备") private Long machineId; @ApiModelProperty("类型,未使用,为0") private Integer dmpType; @ApiModelProperty("字段名称") private String name; @ApiModelProperty("字段描述") private String description; @ApiModelProperty("数据项采集地址,默认地址可只存在参数。例如 Item(A) = A") private String deviceAddress; @ApiModelProperty("是否可写入,1只读,2读写") private Integer dmpAccess; @ApiModelProperty("数据长度,未使用") private Integer dataLength; @ApiModelProperty("数据倍率") private Double valueFactor; @ApiModelProperty("数据类型") private Integer dataType; @ApiModelProperty("参数,未使用") private String methodParam; @ApiModelProperty("索引顺序") private Integer idx; @ApiModelProperty("默认值") private String defaultValue; private Integer wcsDataType; private String dataItem; @ApiModelProperty(value = "工况参数Id ", dataType = "java.lang.String") private Long wcsId; @ApiModelProperty(value = "顺序", required = true) private Integer sort; @ApiModelProperty("实时数据") private Boolean realTimeData; @ApiModelProperty("大屏") private Boolean bigScreen; @ApiModelProperty("过程参数") private Boolean processParameter; @ApiModelProperty("数据标签") private Long usageId; private Long workstationId; public static class DmpVariablesVOBuilder { private Long id; private String dmpDeviceId; private Long machineId; private Integer dmpType; private String name; private String description; private String deviceAddress; private Integer dmpAccess; private Integer dataLength; private Double valueFactor; private Integer dataType; private String methodParam; private Integer idx; private String defaultValue; private Integer wcsDataType; private String dataItem; private Long wcsId; private Integer sort; private Boolean realTimeData; private Boolean bigScreen; private Boolean processParameter; private Long usageId; private Long workstationId; DmpVariablesVOBuilder() { } public DmpVariablesVOBuilder id(final Long id) { this.id = id; return this; } public DmpVariablesVOBuilder dmpDeviceId(final String dmpDeviceId) { this.dmpDeviceId = dmpDeviceId; return this; } public DmpVariablesVOBuilder machineId(final Long machineId) { this.machineId = machineId; return this; } public DmpVariablesVOBuilder dmpType(final Integer dmpType) { this.dmpType = dmpType; return this; } public DmpVariablesVOBuilder name(final String name) { this.name = name; return this; } public DmpVariablesVOBuilder description(final String description) { this.description = description; return this; } public DmpVariablesVOBuilder deviceAddress(final String deviceAddress) { this.deviceAddress = deviceAddress; return this; } public DmpVariablesVOBuilder dmpAccess(final Integer dmpAccess) { this.dmpAccess = dmpAccess; return this; } public DmpVariablesVOBuilder dataLength(final Integer dataLength) { this.dataLength = dataLength; return this; } public DmpVariablesVOBuilder valueFactor(final Double valueFactor) { this.valueFactor = valueFactor; return this; } public DmpVariablesVOBuilder dataType(final Integer dataType) { this.dataType = dataType; return this; } public DmpVariablesVOBuilder methodParam(final String methodParam) { this.methodParam = methodParam; return this; } public DmpVariablesVOBuilder idx(final Integer idx) { this.idx = idx; return this; } public DmpVariablesVOBuilder defaultValue(final String defaultValue) { this.defaultValue = defaultValue; return this; } public DmpVariablesVOBuilder wcsDataType(final Integer wcsDataType) { this.wcsDataType = wcsDataType; return this; } public DmpVariablesVOBuilder dataItem(final String dataItem) { this.dataItem = dataItem; return this; } public DmpVariablesVOBuilder wcsId(final Long wcsId) { this.wcsId = wcsId; return this; } public DmpVariablesVOBuilder sort(final Integer sort) { this.sort = sort; return this; } public DmpVariablesVOBuilder realTimeData(final Boolean realTimeData) { this.realTimeData = realTimeData; return this; } public DmpVariablesVOBuilder bigScreen(final Boolean bigScreen) { this.bigScreen = bigScreen; return this; } public DmpVariablesVOBuilder processParameter(final Boolean processParameter) { this.processParameter = processParameter; return this; } public DmpVariablesVOBuilder usageId(final Long usageId) { this.usageId = usageId; return this; } public DmpVariablesVOBuilder workstationId(final Long workstationId) { this.workstationId = workstationId; return this; } public DmpVariablesVO build() { return new DmpVariablesVO(this.id, this.dmpDeviceId, this.machineId, this.dmpType, this.name, this.description, this.deviceAddress, this.dmpAccess, this.dataLength, this.valueFactor, this.dataType, this.methodParam, this.idx, this.defaultValue, this.wcsDataType, this.dataItem, this.wcsId, this.sort, this.realTimeData, this.bigScreen, this.processParameter, this.usageId, this.workstationId); } public String toString() { return "DmpVariablesVO.DmpVariablesVOBuilder(id=" + this.id + ", dmpDeviceId=" + this.dmpDeviceId + ", machineId=" + this.machineId + ", dmpType=" + this.dmpType + ", name=" + this.name + ", description=" + this.description + ", deviceAddress=" + this.deviceAddress + ", dmpAccess=" + this.dmpAccess + ", dataLength=" + this.dataLength + ", valueFactor=" + this.valueFactor + ", dataType=" + this.dataType + ", methodParam=" + this.methodParam + ", idx=" + this.idx + ", defaultValue=" + this.defaultValue + ", wcsDataType=" + this.wcsDataType + ", dataItem=" + this.dataItem + ", wcsId=" + this.wcsId + ", sort=" + this.sort + ", realTimeData=" + this.realTimeData + ", bigScreen=" + this.bigScreen + ", processParameter=" + this.processParameter + ", usageId=" + this.usageId + ", workstationId=" + this.workstationId + ")"; } } public void setId(final Long id) { this.id = id; } public void setDmpDeviceId(final String dmpDeviceId) { this.dmpDeviceId = dmpDeviceId; } public void setMachineId(final Long machineId) { this.machineId = machineId; } public void setDmpType(final Integer dmpType) { this.dmpType = dmpType; } public void setName(final String name) { this.name = name; } public void setDescription(final String description) { this.description = description; } public void setDeviceAddress(final String deviceAddress) { this.deviceAddress = deviceAddress; } public void setDmpAccess(final Integer dmpAccess) { this.dmpAccess = dmpAccess; } public void setDataLength(final Integer dataLength) { this.dataLength = dataLength; } public void setValueFactor(final Double valueFactor) { this.valueFactor = valueFactor; } public void setDataType(final Integer dataType) { this.dataType = dataType; } public void setMethodParam(final String methodParam) { this.methodParam = methodParam; } public void setIdx(final Integer idx) { this.idx = idx; } public void setDefaultValue(final String defaultValue) { this.defaultValue = defaultValue; } public void setWcsDataType(final Integer wcsDataType) { this.wcsDataType = wcsDataType; } public void setDataItem(final String dataItem) { this.dataItem = dataItem; } public void setWcsId(final Long wcsId) { this.wcsId = wcsId; } public void setSort(final Integer sort) { this.sort = sort; } public void setRealTimeData(final Boolean realTimeData) { this.realTimeData = realTimeData; } public void setBigScreen(final Boolean bigScreen) { this.bigScreen = bigScreen; } public void setProcessParameter(final Boolean processParameter) { this.processParameter = processParameter; } public void setUsageId(final Long usageId) { this.usageId = usageId; } public void setWorkstationId(final Long workstationId) { this.workstationId = workstationId; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof DmpVariablesVO) { DmpVariablesVO other = (DmpVariablesVO) o; if (other.canEqual(this)) { Object this$id = getId(); Object other$id = other.getId(); if (this$id == null) { if (other$id != null) { return false; } } else if (!this$id.equals(other$id)) { return false; } Object this$machineId = getMachineId(); Object other$machineId = other.getMachineId(); if (this$machineId == null) { if (other$machineId != null) { return false; } } else if (!this$machineId.equals(other$machineId)) { return false; } Object this$dmpType = getDmpType(); Object other$dmpType = other.getDmpType(); if (this$dmpType == null) { if (other$dmpType != null) { return false; } } else if (!this$dmpType.equals(other$dmpType)) { return false; } Object this$dmpAccess = getDmpAccess(); Object other$dmpAccess = other.getDmpAccess(); if (this$dmpAccess == null) { if (other$dmpAccess != null) { return false; } } else if (!this$dmpAccess.equals(other$dmpAccess)) { return false; } Object this$dataLength = getDataLength(); Object other$dataLength = other.getDataLength(); if (this$dataLength == null) { if (other$dataLength != null) { return false; } } else if (!this$dataLength.equals(other$dataLength)) { return false; } Object this$valueFactor = getValueFactor(); Object other$valueFactor = other.getValueFactor(); if (this$valueFactor == null) { if (other$valueFactor != null) { return false; } } else if (!this$valueFactor.equals(other$valueFactor)) { return false; } Object this$dataType = getDataType(); Object other$dataType = other.getDataType(); if (this$dataType == null) { if (other$dataType != null) { return false; } } else if (!this$dataType.equals(other$dataType)) { return false; } Object this$idx = getIdx(); Object other$idx = other.getIdx(); if (this$idx == null) { if (other$idx != null) { return false; } } else if (!this$idx.equals(other$idx)) { return false; } Object this$wcsDataType = getWcsDataType(); Object other$wcsDataType = other.getWcsDataType(); if (this$wcsDataType == null) { if (other$wcsDataType != null) { return false; } } else if (!this$wcsDataType.equals(other$wcsDataType)) { return false; } Object this$wcsId = getWcsId(); Object other$wcsId = other.getWcsId(); if (this$wcsId == null) { if (other$wcsId != null) { return false; } } else if (!this$wcsId.equals(other$wcsId)) { return false; } Object this$sort = getSort(); Object other$sort = other.getSort(); if (this$sort == null) { if (other$sort != null) { return false; } } else if (!this$sort.equals(other$sort)) { return false; } Object this$realTimeData = getRealTimeData(); Object other$realTimeData = other.getRealTimeData(); if (this$realTimeData == null) { if (other$realTimeData != null) { return false; } } else if (!this$realTimeData.equals(other$realTimeData)) { return false; } Object this$bigScreen = getBigScreen(); Object other$bigScreen = other.getBigScreen(); if (this$bigScreen == null) { if (other$bigScreen != null) { return false; } } else if (!this$bigScreen.equals(other$bigScreen)) { return false; } Object this$processParameter = getProcessParameter(); Object other$processParameter = other.getProcessParameter(); if (this$processParameter == null) { if (other$processParameter != null) { return false; } } else if (!this$processParameter.equals(other$processParameter)) { return false; } Object this$usageId = getUsageId(); Object other$usageId = other.getUsageId(); if (this$usageId == null) { if (other$usageId != null) { return false; } } else if (!this$usageId.equals(other$usageId)) { return false; } Object this$workstationId = getWorkstationId(); Object other$workstationId = other.getWorkstationId(); if (this$workstationId == null) { if (other$workstationId != null) { return false; } } else if (!this$workstationId.equals(other$workstationId)) { return false; } Object this$dmpDeviceId = getDmpDeviceId(); Object other$dmpDeviceId = other.getDmpDeviceId(); if (this$dmpDeviceId == null) { if (other$dmpDeviceId != null) { return false; } } else if (!this$dmpDeviceId.equals(other$dmpDeviceId)) { return false; } Object this$name = getName(); Object other$name = other.getName(); if (this$name == null) { if (other$name != null) { return false; } } else if (!this$name.equals(other$name)) { return false; } Object this$description = getDescription(); Object other$description = other.getDescription(); if (this$description == null) { if (other$description != null) { return false; } } else if (!this$description.equals(other$description)) { return false; } Object this$deviceAddress = getDeviceAddress(); Object other$deviceAddress = other.getDeviceAddress(); if (this$deviceAddress == null) { if (other$deviceAddress != null) { return false; } } else if (!this$deviceAddress.equals(other$deviceAddress)) { return false; } Object this$methodParam = getMethodParam(); Object other$methodParam = other.getMethodParam(); if (this$methodParam == null) { if (other$methodParam != null) { return false; } } else if (!this$methodParam.equals(other$methodParam)) { return false; } Object this$defaultValue = getDefaultValue(); Object other$defaultValue = other.getDefaultValue(); if (this$defaultValue == null) { if (other$defaultValue != null) { return false; } } else if (!this$defaultValue.equals(other$defaultValue)) { return false; } Object this$dataItem = getDataItem(); Object other$dataItem = other.getDataItem(); return this$dataItem == null ? other$dataItem == null : this$dataItem.equals(other$dataItem); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof DmpVariablesVO; } public int hashCode() { Object $id = getId(); int result = (1 * 59) + ($id == null ? 43 : $id.hashCode()); Object $machineId = getMachineId(); int result2 = (result * 59) + ($machineId == null ? 43 : $machineId.hashCode()); Object $dmpType = getDmpType(); int result3 = (result2 * 59) + ($dmpType == null ? 43 : $dmpType.hashCode()); Object $dmpAccess = getDmpAccess(); int result4 = (result3 * 59) + ($dmpAccess == null ? 43 : $dmpAccess.hashCode()); Object $dataLength = getDataLength(); int result5 = (result4 * 59) + ($dataLength == null ? 43 : $dataLength.hashCode()); Object $valueFactor = getValueFactor(); int result6 = (result5 * 59) + ($valueFactor == null ? 43 : $valueFactor.hashCode()); Object $dataType = getDataType(); int result7 = (result6 * 59) + ($dataType == null ? 43 : $dataType.hashCode()); Object $idx = getIdx(); int result8 = (result7 * 59) + ($idx == null ? 43 : $idx.hashCode()); Object $wcsDataType = getWcsDataType(); int result9 = (result8 * 59) + ($wcsDataType == null ? 43 : $wcsDataType.hashCode()); Object $wcsId = getWcsId(); int result10 = (result9 * 59) + ($wcsId == null ? 43 : $wcsId.hashCode()); Object $sort = getSort(); int result11 = (result10 * 59) + ($sort == null ? 43 : $sort.hashCode()); Object $realTimeData = getRealTimeData(); int result12 = (result11 * 59) + ($realTimeData == null ? 43 : $realTimeData.hashCode()); Object $bigScreen = getBigScreen(); int result13 = (result12 * 59) + ($bigScreen == null ? 43 : $bigScreen.hashCode()); Object $processParameter = getProcessParameter(); int result14 = (result13 * 59) + ($processParameter == null ? 43 : $processParameter.hashCode()); Object $usageId = getUsageId(); int result15 = (result14 * 59) + ($usageId == null ? 43 : $usageId.hashCode()); Object $workstationId = getWorkstationId(); int result16 = (result15 * 59) + ($workstationId == null ? 43 : $workstationId.hashCode()); Object $dmpDeviceId = getDmpDeviceId(); int result17 = (result16 * 59) + ($dmpDeviceId == null ? 43 : $dmpDeviceId.hashCode()); Object $name = getName(); int result18 = (result17 * 59) + ($name == null ? 43 : $name.hashCode()); Object $description = getDescription(); int result19 = (result18 * 59) + ($description == null ? 43 : $description.hashCode()); Object $deviceAddress = getDeviceAddress(); int result20 = (result19 * 59) + ($deviceAddress == null ? 43 : $deviceAddress.hashCode()); Object $methodParam = getMethodParam(); int result21 = (result20 * 59) + ($methodParam == null ? 43 : $methodParam.hashCode()); Object $defaultValue = getDefaultValue(); int result22 = (result21 * 59) + ($defaultValue == null ? 43 : $defaultValue.hashCode()); Object $dataItem = getDataItem(); return (result22 * 59) + ($dataItem == null ? 43 : $dataItem.hashCode()); } public String toString() { return "DmpVariablesVO(id=" + getId() + ", dmpDeviceId=" + getDmpDeviceId() + ", machineId=" + getMachineId() + ", dmpType=" + getDmpType() + ", name=" + getName() + ", description=" + getDescription() + ", deviceAddress=" + getDeviceAddress() + ", dmpAccess=" + getDmpAccess() + ", dataLength=" + getDataLength() + ", valueFactor=" + getValueFactor() + ", dataType=" + getDataType() + ", methodParam=" + getMethodParam() + ", idx=" + getIdx() + ", defaultValue=" + getDefaultValue() + ", wcsDataType=" + getWcsDataType() + ", dataItem=" + getDataItem() + ", wcsId=" + getWcsId() + ", sort=" + getSort() + ", realTimeData=" + getRealTimeData() + ", bigScreen=" + getBigScreen() + ", processParameter=" + getProcessParameter() + ", usageId=" + getUsageId() + ", workstationId=" + getWorkstationId() + ")"; } public static DmpVariablesVOBuilder builder() { return new DmpVariablesVOBuilder(); } public DmpVariablesVO(final Long id, final String dmpDeviceId, final Long machineId, final Integer dmpType, final String name, final String description, final String deviceAddress, final Integer dmpAccess, final Integer dataLength, final Double valueFactor, final Integer dataType, final String methodParam, final Integer idx, final String defaultValue, final Integer wcsDataType, final String dataItem, final Long wcsId, final Integer sort, final Boolean realTimeData, final Boolean bigScreen, final Boolean processParameter, final Long usageId, final Long workstationId) { this.id = id; this.dmpDeviceId = dmpDeviceId; this.machineId = machineId; this.dmpType = dmpType; this.name = name; this.description = description; this.deviceAddress = deviceAddress; this.dmpAccess = dmpAccess; this.dataLength = dataLength; this.valueFactor = valueFactor; this.dataType = dataType; this.methodParam = methodParam; this.idx = idx; this.defaultValue = defaultValue; this.wcsDataType = wcsDataType; this.dataItem = dataItem; this.wcsId = wcsId; this.sort = sort; this.realTimeData = realTimeData; this.bigScreen = bigScreen; this.processParameter = processParameter; this.usageId = usageId; this.workstationId = workstationId; } public DmpVariablesVO() { } public Long getId() { return this.id; } public String getDmpDeviceId() { return this.dmpDeviceId; } public Long getMachineId() { return this.machineId; } public Integer getDmpType() { return this.dmpType; } public String getName() { return this.name; } public String getDescription() { return this.description; } public String getDeviceAddress() { return this.deviceAddress; } public Integer getDmpAccess() { return this.dmpAccess; } public Integer getDataLength() { return this.dataLength; } public Double getValueFactor() { return this.valueFactor; } public Integer getDataType() { return this.dataType; } public String getMethodParam() { return this.methodParam; } public Integer getIdx() { return this.idx; } public String getDefaultValue() { return this.defaultValue; } public Integer getWcsDataType() { return this.wcsDataType; } public String getDataItem() { return this.dataItem; } public Long getWcsId() { return this.wcsId; } public Integer getSort() { return this.sort; } public Boolean getRealTimeData() { return this.realTimeData; } public Boolean getBigScreen() { return this.bigScreen; } public Boolean getProcessParameter() { return this.processParameter; } public Long getUsageId() { return this.usageId; } public Long getWorkstationId() { return this.workstationId; } }