package com.qianwen.smartman.modules.cps.entity; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import com.qianwen.core.mp.base.BaseEntity; @ApiModel(value = "BomVersion对象", description = "bom版本") @TableName("blade_bom_version") /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/entity/BomVersion.class */ public class BomVersion extends BaseEntity { private static final long serialVersionUID = 1; @ApiModelProperty("所属租户") private String tenantId; @ApiModelProperty("产品id") private Long productId; @ApiModelProperty("版本") private String version; @ApiModelProperty("版本状态(0:未定版,1:已定版)") private Integer versionStatus; @ApiModelProperty("工艺版本id") private Long craftId; @ApiModelProperty("工艺版本") private String craftVersion; @ApiModelProperty("备注") private String remark; @ApiModelProperty("版本描述") private String description; public BomVersion setTenantId(final String tenantId) { this.tenantId = tenantId; return this; } public BomVersion setProductId(final Long productId) { this.productId = productId; return this; } public BomVersion setVersion(final String version) { this.version = version; return this; } public BomVersion setVersionStatus(final Integer versionStatus) { this.versionStatus = versionStatus; return this; } public BomVersion setCraftId(final Long craftId) { this.craftId = craftId; return this; } public BomVersion setCraftVersion(final String craftVersion) { this.craftVersion = craftVersion; return this; } public BomVersion setRemark(final String remark) { this.remark = remark; return this; } public BomVersion setDescription(final String description) { this.description = description; return this; } public String toString() { return "BomVersion(tenantId=" + getTenantId() + ", productId=" + getProductId() + ", version=" + getVersion() + ", versionStatus=" + getVersionStatus() + ", craftId=" + getCraftId() + ", craftVersion=" + getCraftVersion() + ", remark=" + getRemark() + ", description=" + getDescription() + ")"; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof BomVersion) { BomVersion other = (BomVersion) o; if (other.canEqual(this) && super.equals(o)) { Object this$productId = getProductId(); Object other$productId = other.getProductId(); if (this$productId == null) { if (other$productId != null) { return false; } } else if (!this$productId.equals(other$productId)) { return false; } Object this$versionStatus = getVersionStatus(); Object other$versionStatus = other.getVersionStatus(); if (this$versionStatus == null) { if (other$versionStatus != null) { return false; } } else if (!this$versionStatus.equals(other$versionStatus)) { return false; } Object this$craftId = getCraftId(); Object other$craftId = other.getCraftId(); if (this$craftId == null) { if (other$craftId != null) { return false; } } else if (!this$craftId.equals(other$craftId)) { return false; } Object this$tenantId = getTenantId(); Object other$tenantId = other.getTenantId(); if (this$tenantId == null) { if (other$tenantId != null) { return false; } } else if (!this$tenantId.equals(other$tenantId)) { return false; } Object this$version = getVersion(); Object other$version = other.getVersion(); if (this$version == null) { if (other$version != null) { return false; } } else if (!this$version.equals(other$version)) { return false; } Object this$craftVersion = getCraftVersion(); Object other$craftVersion = other.getCraftVersion(); if (this$craftVersion == null) { if (other$craftVersion != null) { return false; } } else if (!this$craftVersion.equals(other$craftVersion)) { return false; } Object this$remark = getRemark(); Object other$remark = other.getRemark(); if (this$remark == null) { if (other$remark != null) { return false; } } else if (!this$remark.equals(other$remark)) { return false; } Object this$description = getDescription(); Object other$description = other.getDescription(); return this$description == null ? other$description == null : this$description.equals(other$description); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof BomVersion; } public int hashCode() { int result = super.hashCode(); Object $productId = getProductId(); int result2 = (result * 59) + ($productId == null ? 43 : $productId.hashCode()); Object $versionStatus = getVersionStatus(); int result3 = (result2 * 59) + ($versionStatus == null ? 43 : $versionStatus.hashCode()); Object $craftId = getCraftId(); int result4 = (result3 * 59) + ($craftId == null ? 43 : $craftId.hashCode()); Object $tenantId = getTenantId(); int result5 = (result4 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode()); Object $version = getVersion(); int result6 = (result5 * 59) + ($version == null ? 43 : $version.hashCode()); Object $craftVersion = getCraftVersion(); int result7 = (result6 * 59) + ($craftVersion == null ? 43 : $craftVersion.hashCode()); Object $remark = getRemark(); int result8 = (result7 * 59) + ($remark == null ? 43 : $remark.hashCode()); Object $description = getDescription(); return (result8 * 59) + ($description == null ? 43 : $description.hashCode()); } public String getTenantId() { return this.tenantId; } public Long getProductId() { return this.productId; } public String getVersion() { return this.version; } public Integer getVersionStatus() { return this.versionStatus; } public Long getCraftId() { return this.craftId; } public String getCraftVersion() { return this.craftVersion; } public String getRemark() { return this.remark; } public String getDescription() { return this.description; } }