package com.qianwen.smartman.modules.dnc.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 = "DncWsRelationTd对象", description = "FTP目录与工位关系表")
|
@TableName("blade_dnc_ws_relation_td")
|
public class DncWsRelationTd extends BaseEntity {
|
private static final long serialVersionUID = 1;
|
@ApiModelProperty("租户ID")
|
private String tenantId;
|
@ApiModelProperty("FTP目录id")
|
private Long transferDirectorId;
|
@ApiModelProperty("工位id")
|
private Long workstationId;
|
|
public DncWsRelationTd setTenantId(final String tenantId) {
|
this.tenantId = tenantId;
|
return this;
|
}
|
|
public DncWsRelationTd setTransferDirectorId(final Long transferDirectorId) {
|
this.transferDirectorId = transferDirectorId;
|
return this;
|
}
|
|
public DncWsRelationTd setWorkstationId(final Long workstationId) {
|
this.workstationId = workstationId;
|
return this;
|
}
|
|
public String toString() {
|
return "DncWsRelationTd(tenantId=" + getTenantId() + ", transferDirectorId=" + getTransferDirectorId() + ", workstationId=" + getWorkstationId() + ")";
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof DncWsRelationTd) {
|
DncWsRelationTd other = (DncWsRelationTd) o;
|
if (other.canEqual(this) && super.equals(o)) {
|
Object this$transferDirectorId = getTransferDirectorId();
|
Object other$transferDirectorId = other.getTransferDirectorId();
|
if (this$transferDirectorId == null) {
|
if (other$transferDirectorId != null) {
|
return false;
|
}
|
} else if (!this$transferDirectorId.equals(other$transferDirectorId)) {
|
return false;
|
}
|
Object this$workstationId = getWorkstationId();
|
Object other$workstationId = other.getWorkstationId();
|
if (this$workstationId == null) {
|
if (other$workstationId != null) {
|
return false;
|
}
|
} else if (!this$workstationId.equals(other$workstationId)) {
|
return false;
|
}
|
Object this$tenantId = getTenantId();
|
Object other$tenantId = other.getTenantId();
|
return this$tenantId == null ? other$tenantId == null : this$tenantId.equals(other$tenantId);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof DncWsRelationTd;
|
}
|
|
public int hashCode() {
|
int result = super.hashCode();
|
Object $transferDirectorId = getTransferDirectorId();
|
int result2 = (result * 59) + ($transferDirectorId == null ? 43 : $transferDirectorId.hashCode());
|
Object $workstationId = getWorkstationId();
|
int result3 = (result2 * 59) + ($workstationId == null ? 43 : $workstationId.hashCode());
|
Object $tenantId = getTenantId();
|
return (result3 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode());
|
}
|
|
public String getTenantId() {
|
return this.tenantId;
|
}
|
|
public Long getTransferDirectorId() {
|
return this.transferDirectorId;
|
}
|
|
public Long getWorkstationId() {
|
return this.workstationId;
|
}
|
}
|