package com.qianwen.smartman.modules.cps.vo;
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import java.util.ArrayList;
|
import java.util.List;
|
import javax.validation.constraints.NotBlank;
|
import javax.validation.constraints.Size;
|
import com.qianwen.core.tool.node.INode;
|
import com.qianwen.smartman.modules.system.vo.ChartSelect;
|
|
@ApiModel(value = "ProductVo对象", description = "产品信息")
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/vo/ProductVO.class */
|
public class ProductVO implements Serializable, INode<ProductVO>, ChartSelect {
|
@ApiModelProperty("所属租户")
|
@Size(max = 12, message = "所属租户长度不能超过12")
|
private String tenantId;
|
@NotBlank(message = "产品编号不能为空")
|
@ApiModelProperty("产品编号")
|
@Size(max = 128, message = "产品编号长度不能超过128")
|
private String code;
|
@ApiModelProperty("产品名称")
|
@Size(max = 255, message = "产品名称长度不能超过255")
|
private String name;
|
@ApiModelProperty(value = "上级产品ID", dataType = "java.lang.String")
|
private Long parentId;
|
@ApiModelProperty(value = "产品类型", dataType = "java.lang.String")
|
private Long typeId;
|
@ApiModelProperty("计量单位")
|
@Size(max = 10, message = "计量单位长度不能超过10")
|
private String unit;
|
@ApiModelProperty("规格型号")
|
@Size(max = 255, message = "规格型号长度不能超过255")
|
private String standardModel;
|
@ApiModelProperty("产品描述")
|
@Size(max = 255, message = "产品描述长度不能超过255")
|
private String description;
|
@ApiModelProperty("产品文档")
|
@Size(max = 65535, message = "产品文档长度不能超过65535")
|
private String documents;
|
@ApiModelProperty(value = "产品ID", dataType = "java.lang.String")
|
private Long id;
|
@ApiModelProperty("状态")
|
private Integer status;
|
@ApiModelProperty("上级产品名称")
|
private String parentName;
|
@ApiModelProperty("产品类型名称")
|
private String typeName;
|
@ApiModelProperty("上级产品编号")
|
private String parentCode;
|
@ApiModelProperty("直接父级状态")
|
private Integer parentStatus;
|
@ApiModelProperty("扩展字段")
|
private String extendField;
|
@JsonInclude(JsonInclude.Include.NON_EMPTY)
|
private List<ProductVO> children;
|
|
public void setTenantId(final String tenantId) {
|
this.tenantId = tenantId;
|
}
|
|
public void setCode(final String code) {
|
this.code = code;
|
}
|
|
public void setName(final String name) {
|
this.name = name;
|
}
|
|
public void setParentId(final Long parentId) {
|
this.parentId = parentId;
|
}
|
|
public void setTypeId(final Long typeId) {
|
this.typeId = typeId;
|
}
|
|
public void setUnit(final String unit) {
|
this.unit = unit;
|
}
|
|
public void setStandardModel(final String standardModel) {
|
this.standardModel = standardModel;
|
}
|
|
public void setDescription(final String description) {
|
this.description = description;
|
}
|
|
public void setDocuments(final String documents) {
|
this.documents = documents;
|
}
|
|
public void setId(final Long id) {
|
this.id = id;
|
}
|
|
public void setStatus(final Integer status) {
|
this.status = status;
|
}
|
|
public void setParentName(final String parentName) {
|
this.parentName = parentName;
|
}
|
|
public void setTypeName(final String typeName) {
|
this.typeName = typeName;
|
}
|
|
public void setParentCode(final String parentCode) {
|
this.parentCode = parentCode;
|
}
|
|
public void setParentStatus(final Integer parentStatus) {
|
this.parentStatus = parentStatus;
|
}
|
|
public void setExtendField(final String extendField) {
|
this.extendField = extendField;
|
}
|
|
public void setChildren(final List<ProductVO> children) {
|
this.children = children;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof ProductVO) {
|
ProductVO other = (ProductVO) o;
|
if (other.canEqual(this)) {
|
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$typeId = getTypeId();
|
Object other$typeId = other.getTypeId();
|
if (this$typeId == null) {
|
if (other$typeId != null) {
|
return false;
|
}
|
} else if (!this$typeId.equals(other$typeId)) {
|
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$status = getStatus();
|
Object other$status = other.getStatus();
|
if (this$status == null) {
|
if (other$status != null) {
|
return false;
|
}
|
} else if (!this$status.equals(other$status)) {
|
return false;
|
}
|
Object this$parentStatus = getParentStatus();
|
Object other$parentStatus = other.getParentStatus();
|
if (this$parentStatus == null) {
|
if (other$parentStatus != null) {
|
return false;
|
}
|
} else if (!this$parentStatus.equals(other$parentStatus)) {
|
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$code = getCode();
|
Object other$code = other.getCode();
|
if (this$code == null) {
|
if (other$code != null) {
|
return false;
|
}
|
} else if (!this$code.equals(other$code)) {
|
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$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$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$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$documents = getDocuments();
|
Object other$documents = other.getDocuments();
|
if (this$documents == null) {
|
if (other$documents != null) {
|
return false;
|
}
|
} else if (!this$documents.equals(other$documents)) {
|
return false;
|
}
|
Object this$parentName = getParentName();
|
Object other$parentName = other.getParentName();
|
if (this$parentName == null) {
|
if (other$parentName != null) {
|
return false;
|
}
|
} else if (!this$parentName.equals(other$parentName)) {
|
return false;
|
}
|
Object this$typeName = getTypeName();
|
Object other$typeName = other.getTypeName();
|
if (this$typeName == null) {
|
if (other$typeName != null) {
|
return false;
|
}
|
} else if (!this$typeName.equals(other$typeName)) {
|
return false;
|
}
|
Object this$parentCode = getParentCode();
|
Object other$parentCode = other.getParentCode();
|
if (this$parentCode == null) {
|
if (other$parentCode != null) {
|
return false;
|
}
|
} else if (!this$parentCode.equals(other$parentCode)) {
|
return false;
|
}
|
Object this$extendField = getExtendField();
|
Object other$extendField = other.getExtendField();
|
if (this$extendField == null) {
|
if (other$extendField != null) {
|
return false;
|
}
|
} else if (!this$extendField.equals(other$extendField)) {
|
return false;
|
}
|
Object this$children = getChildren();
|
Object other$children = other.getChildren();
|
return this$children == null ? other$children == null : this$children.equals(other$children);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof ProductVO;
|
}
|
|
public int hashCode() {
|
Object $parentId = getParentId();
|
int result = (1 * 59) + ($parentId == null ? 43 : $parentId.hashCode());
|
Object $typeId = getTypeId();
|
int result2 = (result * 59) + ($typeId == null ? 43 : $typeId.hashCode());
|
Object $id = getId();
|
int result3 = (result2 * 59) + ($id == null ? 43 : $id.hashCode());
|
Object $status = getStatus();
|
int result4 = (result3 * 59) + ($status == null ? 43 : $status.hashCode());
|
Object $parentStatus = getParentStatus();
|
int result5 = (result4 * 59) + ($parentStatus == null ? 43 : $parentStatus.hashCode());
|
Object $tenantId = getTenantId();
|
int result6 = (result5 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode());
|
Object $code = getCode();
|
int result7 = (result6 * 59) + ($code == null ? 43 : $code.hashCode());
|
Object $name = getName();
|
int result8 = (result7 * 59) + ($name == null ? 43 : $name.hashCode());
|
Object $unit = getUnit();
|
int result9 = (result8 * 59) + ($unit == null ? 43 : $unit.hashCode());
|
Object $standardModel = getStandardModel();
|
int result10 = (result9 * 59) + ($standardModel == null ? 43 : $standardModel.hashCode());
|
Object $description = getDescription();
|
int result11 = (result10 * 59) + ($description == null ? 43 : $description.hashCode());
|
Object $documents = getDocuments();
|
int result12 = (result11 * 59) + ($documents == null ? 43 : $documents.hashCode());
|
Object $parentName = getParentName();
|
int result13 = (result12 * 59) + ($parentName == null ? 43 : $parentName.hashCode());
|
Object $typeName = getTypeName();
|
int result14 = (result13 * 59) + ($typeName == null ? 43 : $typeName.hashCode());
|
Object $parentCode = getParentCode();
|
int result15 = (result14 * 59) + ($parentCode == null ? 43 : $parentCode.hashCode());
|
Object $extendField = getExtendField();
|
int result16 = (result15 * 59) + ($extendField == null ? 43 : $extendField.hashCode());
|
Object $children = getChildren();
|
return (result16 * 59) + ($children == null ? 43 : $children.hashCode());
|
}
|
|
public String toString() {
|
return "ProductVO(tenantId=" + getTenantId() + ", code=" + getCode() + ", name=" + getName() + ", parentId=" + getParentId() + ", typeId=" + getTypeId() + ", unit=" + getUnit() + ", standardModel=" + getStandardModel() + ", description=" + getDescription() + ", documents=" + getDocuments() + ", id=" + getId() + ", status=" + getStatus() + ", parentName=" + getParentName() + ", typeName=" + getTypeName() + ", parentCode=" + getParentCode() + ", parentStatus=" + getParentStatus() + ", extendField=" + getExtendField() + ", children=" + getChildren() + ")";
|
}
|
|
public String getTenantId() {
|
return this.tenantId;
|
}
|
|
public String getCode() {
|
return this.code;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
public Long getParentId() {
|
return this.parentId;
|
}
|
|
public Long getTypeId() {
|
return this.typeId;
|
}
|
|
public String getUnit() {
|
return this.unit;
|
}
|
|
public String getStandardModel() {
|
return this.standardModel;
|
}
|
|
public String getDescription() {
|
return this.description;
|
}
|
|
public String getDocuments() {
|
return this.documents;
|
}
|
|
public Long getId() {
|
return this.id;
|
}
|
|
public Integer getStatus() {
|
return this.status;
|
}
|
|
public String getParentName() {
|
return this.parentName;
|
}
|
|
public String getTypeName() {
|
return this.typeName;
|
}
|
|
public String getParentCode() {
|
return this.parentCode;
|
}
|
|
public Integer getParentStatus() {
|
return this.parentStatus;
|
}
|
|
public String getExtendField() {
|
return this.extendField;
|
}
|
|
public List<ProductVO> getChildren() {
|
if (this.children == null) {
|
this.children = new ArrayList();
|
}
|
return this.children;
|
}
|
|
@Override // org.springblade.modules.system.vo.ChartSelect
|
public String getLabel() {
|
return getName();
|
}
|
|
@Override // org.springblade.modules.system.vo.ChartSelect
|
public String getValue() {
|
return getId() + "";
|
}
|
}
|