package com.qianwen.smartman.modules.tpm.entity;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import io.swagger.annotations.ApiModel;
|
import java.util.Date;
|
import com.qianwen.core.tenant.mp.TenantEntity;
|
|
@ApiModel(description = "备品工况记录表")
|
@TableName("blade_device_material_record")
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/tpm/entity/DeviceMaterialRecord.class */
|
public class DeviceMaterialRecord extends TenantEntity {
|
private Long recordId;
|
private Long materialId;
|
private String materialCode;
|
private String materialName;
|
private Integer recordNumber;
|
private Integer bizType;
|
private Long deviceId;
|
private Long userId;
|
private String userName;
|
private Date usageTime;
|
|
public DeviceMaterialRecord setRecordId(final Long recordId) {
|
this.recordId = recordId;
|
return this;
|
}
|
|
public DeviceMaterialRecord setMaterialId(final Long materialId) {
|
this.materialId = materialId;
|
return this;
|
}
|
|
public DeviceMaterialRecord setMaterialCode(final String materialCode) {
|
this.materialCode = materialCode;
|
return this;
|
}
|
|
public DeviceMaterialRecord setMaterialName(final String materialName) {
|
this.materialName = materialName;
|
return this;
|
}
|
|
public DeviceMaterialRecord setRecordNumber(final Integer recordNumber) {
|
this.recordNumber = recordNumber;
|
return this;
|
}
|
|
public DeviceMaterialRecord setBizType(final Integer bizType) {
|
this.bizType = bizType;
|
return this;
|
}
|
|
public DeviceMaterialRecord setDeviceId(final Long deviceId) {
|
this.deviceId = deviceId;
|
return this;
|
}
|
|
public DeviceMaterialRecord setUserId(final Long userId) {
|
this.userId = userId;
|
return this;
|
}
|
|
public DeviceMaterialRecord setUserName(final String userName) {
|
this.userName = userName;
|
return this;
|
}
|
|
public DeviceMaterialRecord setUsageTime(final Date usageTime) {
|
this.usageTime = usageTime;
|
return this;
|
}
|
|
public String toString() {
|
return "DeviceMaterialRecord(recordId=" + getRecordId() + ", materialId=" + getMaterialId() + ", materialCode=" + getMaterialCode() + ", materialName=" + getMaterialName() + ", recordNumber=" + getRecordNumber() + ", bizType=" + getBizType() + ", deviceId=" + getDeviceId() + ", userId=" + getUserId() + ", userName=" + getUserName() + ", usageTime=" + getUsageTime() + ")";
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof DeviceMaterialRecord) {
|
DeviceMaterialRecord other = (DeviceMaterialRecord) o;
|
if (other.canEqual(this) && super.equals(o)) {
|
Object this$recordId = getRecordId();
|
Object other$recordId = other.getRecordId();
|
if (this$recordId == null) {
|
if (other$recordId != null) {
|
return false;
|
}
|
} else if (!this$recordId.equals(other$recordId)) {
|
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$recordNumber = getRecordNumber();
|
Object other$recordNumber = other.getRecordNumber();
|
if (this$recordNumber == null) {
|
if (other$recordNumber != null) {
|
return false;
|
}
|
} else if (!this$recordNumber.equals(other$recordNumber)) {
|
return false;
|
}
|
Object this$bizType = getBizType();
|
Object other$bizType = other.getBizType();
|
if (this$bizType == null) {
|
if (other$bizType != null) {
|
return false;
|
}
|
} else if (!this$bizType.equals(other$bizType)) {
|
return false;
|
}
|
Object this$deviceId = getDeviceId();
|
Object other$deviceId = other.getDeviceId();
|
if (this$deviceId == null) {
|
if (other$deviceId != null) {
|
return false;
|
}
|
} else if (!this$deviceId.equals(other$deviceId)) {
|
return false;
|
}
|
Object this$userId = getUserId();
|
Object other$userId = other.getUserId();
|
if (this$userId == null) {
|
if (other$userId != null) {
|
return false;
|
}
|
} else if (!this$userId.equals(other$userId)) {
|
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$userName = getUserName();
|
Object other$userName = other.getUserName();
|
if (this$userName == null) {
|
if (other$userName != null) {
|
return false;
|
}
|
} else if (!this$userName.equals(other$userName)) {
|
return false;
|
}
|
Object this$usageTime = getUsageTime();
|
Object other$usageTime = other.getUsageTime();
|
return this$usageTime == null ? other$usageTime == null : this$usageTime.equals(other$usageTime);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof DeviceMaterialRecord;
|
}
|
|
public int hashCode() {
|
int result = super.hashCode();
|
Object $recordId = getRecordId();
|
int result2 = (result * 59) + ($recordId == null ? 43 : $recordId.hashCode());
|
Object $materialId = getMaterialId();
|
int result3 = (result2 * 59) + ($materialId == null ? 43 : $materialId.hashCode());
|
Object $recordNumber = getRecordNumber();
|
int result4 = (result3 * 59) + ($recordNumber == null ? 43 : $recordNumber.hashCode());
|
Object $bizType = getBizType();
|
int result5 = (result4 * 59) + ($bizType == null ? 43 : $bizType.hashCode());
|
Object $deviceId = getDeviceId();
|
int result6 = (result5 * 59) + ($deviceId == null ? 43 : $deviceId.hashCode());
|
Object $userId = getUserId();
|
int result7 = (result6 * 59) + ($userId == null ? 43 : $userId.hashCode());
|
Object $materialCode = getMaterialCode();
|
int result8 = (result7 * 59) + ($materialCode == null ? 43 : $materialCode.hashCode());
|
Object $materialName = getMaterialName();
|
int result9 = (result8 * 59) + ($materialName == null ? 43 : $materialName.hashCode());
|
Object $userName = getUserName();
|
int result10 = (result9 * 59) + ($userName == null ? 43 : $userName.hashCode());
|
Object $usageTime = getUsageTime();
|
return (result10 * 59) + ($usageTime == null ? 43 : $usageTime.hashCode());
|
}
|
|
public Long getRecordId() {
|
return this.recordId;
|
}
|
|
public Long getMaterialId() {
|
return this.materialId;
|
}
|
|
public String getMaterialCode() {
|
return this.materialCode;
|
}
|
|
public String getMaterialName() {
|
return this.materialName;
|
}
|
|
public Integer getRecordNumber() {
|
return this.recordNumber;
|
}
|
|
public Integer getBizType() {
|
return this.bizType;
|
}
|
|
public Long getDeviceId() {
|
return this.deviceId;
|
}
|
|
public Long getUserId() {
|
return this.userId;
|
}
|
|
public String getUserName() {
|
return this.userName;
|
}
|
|
public Date getUsageTime() {
|
return this.usageTime;
|
}
|
}
|