package com.qianwen.smartman.modules.dnc.dto;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
public class WorkstationDirectoryDto {
|
@ApiModelProperty("工位id")
|
private Long workstationId;
|
@ApiModelProperty("工位组id")
|
private Long workstationParentId;
|
@ApiModelProperty("工位名称")
|
private String workstationName;
|
@ApiModelProperty("工位职权域id")
|
private Long deptId;
|
|
public WorkstationDirectoryDto setWorkstationId(final Long workstationId) {
|
this.workstationId = workstationId;
|
return this;
|
}
|
|
public WorkstationDirectoryDto setWorkstationParentId(final Long workstationParentId) {
|
this.workstationParentId = workstationParentId;
|
return this;
|
}
|
|
public WorkstationDirectoryDto setWorkstationName(final String workstationName) {
|
this.workstationName = workstationName;
|
return this;
|
}
|
|
public WorkstationDirectoryDto setDeptId(final Long deptId) {
|
this.deptId = deptId;
|
return this;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof WorkstationDirectoryDto) {
|
WorkstationDirectoryDto other = (WorkstationDirectoryDto) o;
|
if (other.canEqual(this)) {
|
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$workstationParentId = getWorkstationParentId();
|
Object other$workstationParentId = other.getWorkstationParentId();
|
if (this$workstationParentId == null) {
|
if (other$workstationParentId != null) {
|
return false;
|
}
|
} else if (!this$workstationParentId.equals(other$workstationParentId)) {
|
return false;
|
}
|
Object this$deptId = getDeptId();
|
Object other$deptId = other.getDeptId();
|
if (this$deptId == null) {
|
if (other$deptId != null) {
|
return false;
|
}
|
} else if (!this$deptId.equals(other$deptId)) {
|
return false;
|
}
|
Object this$workstationName = getWorkstationName();
|
Object other$workstationName = other.getWorkstationName();
|
return this$workstationName == null ? other$workstationName == null : this$workstationName.equals(other$workstationName);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof WorkstationDirectoryDto;
|
}
|
|
public int hashCode() {
|
Object $workstationId = getWorkstationId();
|
int result = (1 * 59) + ($workstationId == null ? 43 : $workstationId.hashCode());
|
Object $workstationParentId = getWorkstationParentId();
|
int result2 = (result * 59) + ($workstationParentId == null ? 43 : $workstationParentId.hashCode());
|
Object $deptId = getDeptId();
|
int result3 = (result2 * 59) + ($deptId == null ? 43 : $deptId.hashCode());
|
Object $workstationName = getWorkstationName();
|
return (result3 * 59) + ($workstationName == null ? 43 : $workstationName.hashCode());
|
}
|
|
public String toString() {
|
return "WorkstationDirectoryDto(workstationId=" + getWorkstationId() + ", workstationParentId=" + getWorkstationParentId() + ", workstationName=" + getWorkstationName() + ", deptId=" + getDeptId() + ")";
|
}
|
|
public Long getWorkstationId() {
|
return this.workstationId;
|
}
|
|
public Long getWorkstationParentId() {
|
return this.workstationParentId;
|
}
|
|
public String getWorkstationName() {
|
return this.workstationName;
|
}
|
|
public Long getDeptId() {
|
return this.deptId;
|
}
|
}
|