package com.qianwen.smartman.modules.cps.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;
|
import java.math.BigDecimal;
|
import javax.validation.constraints.NotNull;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/vo/MaterialUpdateVO.class */
|
public class MaterialUpdateVO implements Serializable {
|
private static final long serialVersionUID = -1660824525705325773L;
|
@NotNull(message = "cps.material.id.can.not.be.null")
|
@JsonSerialize(using = ToStringSerializer.class)
|
@ApiModelProperty(value = "id", required = true)
|
private Long id;
|
@ApiModelProperty("物料条码")
|
private String barCode;
|
@ApiModelProperty("物料编码")
|
private String code;
|
@ApiModelProperty("物料名称")
|
private String name;
|
@NotNull(message = "cps.material.type.id.can.not.be.null")
|
@JsonSerialize(using = ToStringSerializer.class)
|
@ApiModelProperty("物料类型Id")
|
private Long typeId;
|
@ApiModelProperty("计量单位")
|
private String unit;
|
@ApiModelProperty("材质")
|
private String stuff;
|
@ApiModelProperty("规格")
|
private String standardModel;
|
@ApiModelProperty("备注")
|
private String remark;
|
@ApiModelProperty("额定库存")
|
private BigDecimal lowerLimit;
|
@ApiModelProperty("安全库存")
|
private BigDecimal upperLimit;
|
@ApiModelProperty("是否必检:0-非必检,1-必检")
|
private Integer isMustCheck;
|
@ApiModelProperty("物料性质:1-原材料、2-半成品、3-成品、4-备品备件、5-辅助用品、9-其它")
|
private Integer property;
|
@ApiModelProperty("物料类型名称")
|
private String typeName;
|
@ApiModelProperty("启用1 禁用0")
|
private Integer status;
|
|
public MaterialUpdateVO setId(final Long id) {
|
this.id = id;
|
return this;
|
}
|
|
public MaterialUpdateVO setBarCode(final String barCode) {
|
this.barCode = barCode;
|
return this;
|
}
|
|
public MaterialUpdateVO setCode(final String code) {
|
this.code = code;
|
return this;
|
}
|
|
public MaterialUpdateVO setName(final String name) {
|
this.name = name;
|
return this;
|
}
|
|
public MaterialUpdateVO setTypeId(final Long typeId) {
|
this.typeId = typeId;
|
return this;
|
}
|
|
public MaterialUpdateVO setUnit(final String unit) {
|
this.unit = unit;
|
return this;
|
}
|
|
public MaterialUpdateVO setStuff(final String stuff) {
|
this.stuff = stuff;
|
return this;
|
}
|
|
public MaterialUpdateVO setStandardModel(final String standardModel) {
|
this.standardModel = standardModel;
|
return this;
|
}
|
|
public MaterialUpdateVO setRemark(final String remark) {
|
this.remark = remark;
|
return this;
|
}
|
|
public MaterialUpdateVO setLowerLimit(final BigDecimal lowerLimit) {
|
this.lowerLimit = lowerLimit;
|
return this;
|
}
|
|
public MaterialUpdateVO setUpperLimit(final BigDecimal upperLimit) {
|
this.upperLimit = upperLimit;
|
return this;
|
}
|
|
public MaterialUpdateVO setIsMustCheck(final Integer isMustCheck) {
|
this.isMustCheck = isMustCheck;
|
return this;
|
}
|
|
public MaterialUpdateVO setProperty(final Integer property) {
|
this.property = property;
|
return this;
|
}
|
|
public MaterialUpdateVO setTypeName(final String typeName) {
|
this.typeName = typeName;
|
return this;
|
}
|
|
public MaterialUpdateVO setStatus(final Integer status) {
|
this.status = status;
|
return this;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof MaterialUpdateVO) {
|
MaterialUpdateVO other = (MaterialUpdateVO) 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$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$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$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$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$barCode = getBarCode();
|
Object other$barCode = other.getBarCode();
|
if (this$barCode == null) {
|
if (other$barCode != null) {
|
return false;
|
}
|
} else if (!this$barCode.equals(other$barCode)) {
|
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$stuff = getStuff();
|
Object other$stuff = other.getStuff();
|
if (this$stuff == null) {
|
if (other$stuff != null) {
|
return false;
|
}
|
} else if (!this$stuff.equals(other$stuff)) {
|
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$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$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();
|
if (this$upperLimit == null) {
|
if (other$upperLimit != null) {
|
return false;
|
}
|
} else if (!this$upperLimit.equals(other$upperLimit)) {
|
return false;
|
}
|
Object this$typeName = getTypeName();
|
Object other$typeName = other.getTypeName();
|
return this$typeName == null ? other$typeName == null : this$typeName.equals(other$typeName);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof MaterialUpdateVO;
|
}
|
|
public int hashCode() {
|
Object $id = getId();
|
int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
|
Object $typeId = getTypeId();
|
int result2 = (result * 59) + ($typeId == null ? 43 : $typeId.hashCode());
|
Object $isMustCheck = getIsMustCheck();
|
int result3 = (result2 * 59) + ($isMustCheck == null ? 43 : $isMustCheck.hashCode());
|
Object $property = getProperty();
|
int result4 = (result3 * 59) + ($property == null ? 43 : $property.hashCode());
|
Object $status = getStatus();
|
int result5 = (result4 * 59) + ($status == null ? 43 : $status.hashCode());
|
Object $barCode = getBarCode();
|
int result6 = (result5 * 59) + ($barCode == null ? 43 : $barCode.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 $stuff = getStuff();
|
int result10 = (result9 * 59) + ($stuff == null ? 43 : $stuff.hashCode());
|
Object $standardModel = getStandardModel();
|
int result11 = (result10 * 59) + ($standardModel == null ? 43 : $standardModel.hashCode());
|
Object $remark = getRemark();
|
int result12 = (result11 * 59) + ($remark == null ? 43 : $remark.hashCode());
|
Object $lowerLimit = getLowerLimit();
|
int result13 = (result12 * 59) + ($lowerLimit == null ? 43 : $lowerLimit.hashCode());
|
Object $upperLimit = getUpperLimit();
|
int result14 = (result13 * 59) + ($upperLimit == null ? 43 : $upperLimit.hashCode());
|
Object $typeName = getTypeName();
|
return (result14 * 59) + ($typeName == null ? 43 : $typeName.hashCode());
|
}
|
|
public String toString() {
|
return "MaterialUpdateVO(id=" + getId() + ", barCode=" + getBarCode() + ", code=" + getCode() + ", name=" + getName() + ", typeId=" + getTypeId() + ", unit=" + getUnit() + ", stuff=" + getStuff() + ", standardModel=" + getStandardModel() + ", remark=" + getRemark() + ", lowerLimit=" + getLowerLimit() + ", upperLimit=" + getUpperLimit() + ", isMustCheck=" + getIsMustCheck() + ", property=" + getProperty() + ", typeName=" + getTypeName() + ", status=" + getStatus() + ")";
|
}
|
|
public Long getId() {
|
return this.id;
|
}
|
|
public String getBarCode() {
|
return this.barCode;
|
}
|
|
public String getCode() {
|
return this.code;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
public Long getTypeId() {
|
return this.typeId;
|
}
|
|
public String getUnit() {
|
return this.unit;
|
}
|
|
public String getStuff() {
|
return this.stuff;
|
}
|
|
public String getStandardModel() {
|
return this.standardModel;
|
}
|
|
public String getRemark() {
|
return this.remark;
|
}
|
|
public BigDecimal getLowerLimit() {
|
return this.lowerLimit;
|
}
|
|
public BigDecimal getUpperLimit() {
|
return this.upperLimit;
|
}
|
|
public Integer getIsMustCheck() {
|
return this.isMustCheck;
|
}
|
|
public Integer getProperty() {
|
return this.property;
|
}
|
|
public String getTypeName() {
|
return this.typeName;
|
}
|
|
public Integer getStatus() {
|
return this.status;
|
}
|
}
|