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 = "MaterialStorage对象", description = "物料存放")
|
@TableName("blade_material_storage")
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/entity/MaterialStorage.class */
|
public class MaterialStorage extends BaseEntity {
|
private static final long serialVersionUID = 1;
|
@ApiModelProperty("物料id")
|
private Long materialId;
|
@ApiModelProperty("库位id")
|
private Long warehouseStationId;
|
|
public MaterialStorage setMaterialId(final Long materialId) {
|
this.materialId = materialId;
|
return this;
|
}
|
|
public MaterialStorage setWarehouseStationId(final Long warehouseStationId) {
|
this.warehouseStationId = warehouseStationId;
|
return this;
|
}
|
|
public String toString() {
|
return "MaterialStorage(materialId=" + getMaterialId() + ", warehouseStationId=" + getWarehouseStationId() + ")";
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof MaterialStorage) {
|
MaterialStorage other = (MaterialStorage) o;
|
if (other.canEqual(this) && super.equals(o)) {
|
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$warehouseStationId = getWarehouseStationId();
|
Object other$warehouseStationId = other.getWarehouseStationId();
|
return this$warehouseStationId == null ? other$warehouseStationId == null : this$warehouseStationId.equals(other$warehouseStationId);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof MaterialStorage;
|
}
|
|
public int hashCode() {
|
int result = super.hashCode();
|
Object $materialId = getMaterialId();
|
int result2 = (result * 59) + ($materialId == null ? 43 : $materialId.hashCode());
|
Object $warehouseStationId = getWarehouseStationId();
|
return (result2 * 59) + ($warehouseStationId == null ? 43 : $warehouseStationId.hashCode());
|
}
|
|
public Long getMaterialId() {
|
return this.materialId;
|
}
|
|
public Long getWarehouseStationId() {
|
return this.warehouseStationId;
|
}
|
}
|