package com.qianwen.smartman.modules.smis.vo;
|
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import javax.validation.constraints.NotNull;
|
import javax.validation.constraints.Size;
|
|
@ApiModel(value = "BomMaterialDetailVO对象", description = "bom物料详情")
|
public class BomMaterialDetailTreeVO implements Serializable {
|
@ApiModelProperty(value = "bom版本id", dataType = "java.lang.String")
|
private Long versionId;
|
@NotNull(message = "物料Id不能为空")
|
@ApiModelProperty(value = "物料id", dataType = "java.lang.String")
|
private Long materialId;
|
@ApiModelProperty(value = "父级Id", dataType = "java.lang.String")
|
private Long parentId;
|
@ApiModelProperty("allPath")
|
@Size(max = 255, message = "allPath长度不能超过255")
|
private String allPath;
|
@ApiModelProperty("备注")
|
@Size(max = 255, message = "备注长度不能超过255")
|
private String remark;
|
@ApiModelProperty(value = "主键", dataType = "java.lang.String")
|
private Long id;
|
@ApiModelProperty("物料编码")
|
private String materialCode;
|
@ApiModelProperty("物料名称")
|
private String materialName;
|
@ApiModelProperty("规格")
|
private String standardModel;
|
@ApiModelProperty("计量单位")
|
private String unit;
|
@ApiModelProperty(value = "物料类型", dataType = "java.lang.String")
|
private Long materialTypeId;
|
@ApiModelProperty("物料类型名称")
|
private String materialTypeName;
|
@ApiModelProperty("物料性质")
|
private Integer property;
|
@ApiModelProperty("物料性质")
|
private String propertyName;
|
@ApiModelProperty("是否必检:0-非必检,1-必检")
|
private Integer isMustCheck;
|
@ApiModelProperty("额定库存")
|
private BigDecimal lowerLimit;
|
@ApiModelProperty("安全库存")
|
private BigDecimal upperLimit;
|
|
public void setVersionId(final Long versionId) {
|
this.versionId = versionId;
|
}
|
|
public void setMaterialId(final Long materialId) {
|
this.materialId = materialId;
|
}
|
|
public void setParentId(final Long parentId) {
|
this.parentId = parentId;
|
}
|
|
public void setAllPath(final String allPath) {
|
this.allPath = allPath;
|
}
|
|
public void setRemark(final String remark) {
|
this.remark = remark;
|
}
|
|
public void setId(final Long id) {
|
this.id = id;
|
}
|
|
public void setMaterialCode(final String materialCode) {
|
this.materialCode = materialCode;
|
}
|
|
public void setMaterialName(final String materialName) {
|
this.materialName = materialName;
|
}
|
|
public void setStandardModel(final String standardModel) {
|
this.standardModel = standardModel;
|
}
|
|
public void setUnit(final String unit) {
|
this.unit = unit;
|
}
|
|
public void setMaterialTypeId(final Long materialTypeId) {
|
this.materialTypeId = materialTypeId;
|
}
|
|
public void setMaterialTypeName(final String materialTypeName) {
|
this.materialTypeName = materialTypeName;
|
}
|
|
public void setProperty(final Integer property) {
|
this.property = property;
|
}
|
|
public void setPropertyName(final String propertyName) {
|
this.propertyName = propertyName;
|
}
|
|
public void setIsMustCheck(final Integer isMustCheck) {
|
this.isMustCheck = isMustCheck;
|
}
|
|
public void setLowerLimit(final BigDecimal lowerLimit) {
|
this.lowerLimit = lowerLimit;
|
}
|
|
public void setUpperLimit(final BigDecimal upperLimit) {
|
this.upperLimit = upperLimit;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof BomMaterialDetailTreeVO) {
|
BomMaterialDetailTreeVO other = (BomMaterialDetailTreeVO) o;
|
if (other.canEqual(this)) {
|
Object this$versionId = getVersionId();
|
Object other$versionId = other.getVersionId();
|
if (this$versionId == null) {
|
if (other$versionId != null) {
|
return false;
|
}
|
} else if (!this$versionId.equals(other$versionId)) {
|
return false;
|
}
|
Object this$materialId = getMaterialId();
|
Object other$materialId = other.getMaterialId();
|
if (this$materialId == null) {
|
if (other$materialId != null) {
|
return false;
|
}
|
} else if (!this$materialId.equals(other$materialId)) {
|
return false;
|
}
|
Object this$parentId = getParentId();
|
Object other$parentId = other.getParentId();
|
if (this$parentId == null) {
|
if (other$parentId != null) {
|
return false;
|
}
|
} else if (!this$parentId.equals(other$parentId)) {
|
return false;
|
}
|
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$materialTypeId = getMaterialTypeId();
|
Object other$materialTypeId = other.getMaterialTypeId();
|
if (this$materialTypeId == null) {
|
if (other$materialTypeId != null) {
|
return false;
|
}
|
} else if (!this$materialTypeId.equals(other$materialTypeId)) {
|
return false;
|
}
|
Object this$property = getProperty();
|
Object other$property = other.getProperty();
|
if (this$property == null) {
|
if (other$property != null) {
|
return false;
|
}
|
} else if (!this$property.equals(other$property)) {
|
return false;
|
}
|
Object this$isMustCheck = getIsMustCheck();
|
Object other$isMustCheck = other.getIsMustCheck();
|
if (this$isMustCheck == null) {
|
if (other$isMustCheck != null) {
|
return false;
|
}
|
} else if (!this$isMustCheck.equals(other$isMustCheck)) {
|
return false;
|
}
|
Object this$allPath = getAllPath();
|
Object other$allPath = other.getAllPath();
|
if (this$allPath == null) {
|
if (other$allPath != null) {
|
return false;
|
}
|
} else if (!this$allPath.equals(other$allPath)) {
|
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$materialCode = getMaterialCode();
|
Object other$materialCode = other.getMaterialCode();
|
if (this$materialCode == null) {
|
if (other$materialCode != null) {
|
return false;
|
}
|
} else if (!this$materialCode.equals(other$materialCode)) {
|
return false;
|
}
|
Object this$materialName = getMaterialName();
|
Object other$materialName = other.getMaterialName();
|
if (this$materialName == null) {
|
if (other$materialName != null) {
|
return false;
|
}
|
} else if (!this$materialName.equals(other$materialName)) {
|
return false;
|
}
|
Object this$standardModel = getStandardModel();
|
Object other$standardModel = other.getStandardModel();
|
if (this$standardModel == null) {
|
if (other$standardModel != null) {
|
return false;
|
}
|
} else if (!this$standardModel.equals(other$standardModel)) {
|
return false;
|
}
|
Object this$unit = getUnit();
|
Object other$unit = other.getUnit();
|
if (this$unit == null) {
|
if (other$unit != null) {
|
return false;
|
}
|
} else if (!this$unit.equals(other$unit)) {
|
return false;
|
}
|
Object this$materialTypeName = getMaterialTypeName();
|
Object other$materialTypeName = other.getMaterialTypeName();
|
if (this$materialTypeName == null) {
|
if (other$materialTypeName != null) {
|
return false;
|
}
|
} else if (!this$materialTypeName.equals(other$materialTypeName)) {
|
return false;
|
}
|
Object this$propertyName = getPropertyName();
|
Object other$propertyName = other.getPropertyName();
|
if (this$propertyName == null) {
|
if (other$propertyName != null) {
|
return false;
|
}
|
} else if (!this$propertyName.equals(other$propertyName)) {
|
return false;
|
}
|
Object this$lowerLimit = getLowerLimit();
|
Object other$lowerLimit = other.getLowerLimit();
|
if (this$lowerLimit == null) {
|
if (other$lowerLimit != null) {
|
return false;
|
}
|
} else if (!this$lowerLimit.equals(other$lowerLimit)) {
|
return false;
|
}
|
Object this$upperLimit = getUpperLimit();
|
Object other$upperLimit = other.getUpperLimit();
|
return this$upperLimit == null ? other$upperLimit == null : this$upperLimit.equals(other$upperLimit);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof BomMaterialDetailTreeVO;
|
}
|
|
public int hashCode() {
|
Object $versionId = getVersionId();
|
int result = (1 * 59) + ($versionId == null ? 43 : $versionId.hashCode());
|
Object $materialId = getMaterialId();
|
int result2 = (result * 59) + ($materialId == null ? 43 : $materialId.hashCode());
|
Object $parentId = getParentId();
|
int result3 = (result2 * 59) + ($parentId == null ? 43 : $parentId.hashCode());
|
Object $id = getId();
|
int result4 = (result3 * 59) + ($id == null ? 43 : $id.hashCode());
|
Object $materialTypeId = getMaterialTypeId();
|
int result5 = (result4 * 59) + ($materialTypeId == null ? 43 : $materialTypeId.hashCode());
|
Object $property = getProperty();
|
int result6 = (result5 * 59) + ($property == null ? 43 : $property.hashCode());
|
Object $isMustCheck = getIsMustCheck();
|
int result7 = (result6 * 59) + ($isMustCheck == null ? 43 : $isMustCheck.hashCode());
|
Object $allPath = getAllPath();
|
int result8 = (result7 * 59) + ($allPath == null ? 43 : $allPath.hashCode());
|
Object $remark = getRemark();
|
int result9 = (result8 * 59) + ($remark == null ? 43 : $remark.hashCode());
|
Object $materialCode = getMaterialCode();
|
int result10 = (result9 * 59) + ($materialCode == null ? 43 : $materialCode.hashCode());
|
Object $materialName = getMaterialName();
|
int result11 = (result10 * 59) + ($materialName == null ? 43 : $materialName.hashCode());
|
Object $standardModel = getStandardModel();
|
int result12 = (result11 * 59) + ($standardModel == null ? 43 : $standardModel.hashCode());
|
Object $unit = getUnit();
|
int result13 = (result12 * 59) + ($unit == null ? 43 : $unit.hashCode());
|
Object $materialTypeName = getMaterialTypeName();
|
int result14 = (result13 * 59) + ($materialTypeName == null ? 43 : $materialTypeName.hashCode());
|
Object $propertyName = getPropertyName();
|
int result15 = (result14 * 59) + ($propertyName == null ? 43 : $propertyName.hashCode());
|
Object $lowerLimit = getLowerLimit();
|
int result16 = (result15 * 59) + ($lowerLimit == null ? 43 : $lowerLimit.hashCode());
|
Object $upperLimit = getUpperLimit();
|
return (result16 * 59) + ($upperLimit == null ? 43 : $upperLimit.hashCode());
|
}
|
|
public String toString() {
|
return "BomMaterialDetailTreeVO(versionId=" + getVersionId() + ", materialId=" + getMaterialId() + ", parentId=" + getParentId() + ", allPath=" + getAllPath() + ", remark=" + getRemark() + ", id=" + getId() + ", materialCode=" + getMaterialCode() + ", materialName=" + getMaterialName() + ", standardModel=" + getStandardModel() + ", unit=" + getUnit() + ", materialTypeId=" + getMaterialTypeId() + ", materialTypeName=" + getMaterialTypeName() + ", property=" + getProperty() + ", propertyName=" + getPropertyName() + ", isMustCheck=" + getIsMustCheck() + ", lowerLimit=" + getLowerLimit() + ", upperLimit=" + getUpperLimit() + ")";
|
}
|
|
public Long getVersionId() {
|
return this.versionId;
|
}
|
|
public Long getMaterialId() {
|
return this.materialId;
|
}
|
|
public Long getParentId() {
|
return this.parentId;
|
}
|
|
public String getAllPath() {
|
return this.allPath;
|
}
|
|
public String getRemark() {
|
return this.remark;
|
}
|
|
public Long getId() {
|
return this.id;
|
}
|
|
public String getMaterialCode() {
|
return this.materialCode;
|
}
|
|
public String getMaterialName() {
|
return this.materialName;
|
}
|
|
public String getStandardModel() {
|
return this.standardModel;
|
}
|
|
public String getUnit() {
|
return this.unit;
|
}
|
|
public Long getMaterialTypeId() {
|
return this.materialTypeId;
|
}
|
|
public String getMaterialTypeName() {
|
return this.materialTypeName;
|
}
|
|
public Integer getProperty() {
|
return this.property;
|
}
|
|
public String getPropertyName() {
|
return this.propertyName;
|
}
|
|
public Integer getIsMustCheck() {
|
return this.isMustCheck;
|
}
|
|
public BigDecimal getLowerLimit() {
|
return this.lowerLimit;
|
}
|
|
public BigDecimal getUpperLimit() {
|
return this.upperLimit;
|
}
|
}
|