package com.qianwen.smartman.modules.dnc.dto;
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
|
public class TransferDirectoryDto implements Serializable {
|
private static final long serialVersionUID = 1;
|
@ApiModelProperty("目录name/工位名称")
|
private String name;
|
@ApiModelProperty("目录组的all_path")
|
private String groupAllPath;
|
@ApiModelProperty("目录组all_path_name")
|
private String allPathName;
|
@JsonSerialize(using = ToStringSerializer.class)
|
@ApiModelProperty(value = "传输目录组Id", dataType = "java.lang.String")
|
private Long groupId;
|
@JsonSerialize(using = ToStringSerializer.class)
|
@ApiModelProperty(value = "职权域Id", dataType = "java.lang.String")
|
private Long deptId;
|
@ApiModelProperty("工位id")
|
private Long workstationId;
|
|
public TransferDirectoryDto setName(final String name) {
|
this.name = name;
|
return this;
|
}
|
|
public TransferDirectoryDto setGroupAllPath(final String groupAllPath) {
|
this.groupAllPath = groupAllPath;
|
return this;
|
}
|
|
public TransferDirectoryDto setAllPathName(final String allPathName) {
|
this.allPathName = allPathName;
|
return this;
|
}
|
|
public TransferDirectoryDto setGroupId(final Long groupId) {
|
this.groupId = groupId;
|
return this;
|
}
|
|
public TransferDirectoryDto setDeptId(final Long deptId) {
|
this.deptId = deptId;
|
return this;
|
}
|
|
public TransferDirectoryDto setWorkstationId(final Long workstationId) {
|
this.workstationId = workstationId;
|
return this;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof TransferDirectoryDto) {
|
TransferDirectoryDto other = (TransferDirectoryDto) o;
|
if (other.canEqual(this)) {
|
Object this$groupId = getGroupId();
|
Object other$groupId = other.getGroupId();
|
if (this$groupId == null) {
|
if (other$groupId != null) {
|
return false;
|
}
|
} else if (!this$groupId.equals(other$groupId)) {
|
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$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$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$groupAllPath = getGroupAllPath();
|
Object other$groupAllPath = other.getGroupAllPath();
|
if (this$groupAllPath == null) {
|
if (other$groupAllPath != null) {
|
return false;
|
}
|
} else if (!this$groupAllPath.equals(other$groupAllPath)) {
|
return false;
|
}
|
Object this$allPathName = getAllPathName();
|
Object other$allPathName = other.getAllPathName();
|
return this$allPathName == null ? other$allPathName == null : this$allPathName.equals(other$allPathName);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof TransferDirectoryDto;
|
}
|
|
public int hashCode() {
|
Object $groupId = getGroupId();
|
int result = (1 * 59) + ($groupId == null ? 43 : $groupId.hashCode());
|
Object $deptId = getDeptId();
|
int result2 = (result * 59) + ($deptId == null ? 43 : $deptId.hashCode());
|
Object $workstationId = getWorkstationId();
|
int result3 = (result2 * 59) + ($workstationId == null ? 43 : $workstationId.hashCode());
|
Object $name = getName();
|
int result4 = (result3 * 59) + ($name == null ? 43 : $name.hashCode());
|
Object $groupAllPath = getGroupAllPath();
|
int result5 = (result4 * 59) + ($groupAllPath == null ? 43 : $groupAllPath.hashCode());
|
Object $allPathName = getAllPathName();
|
return (result5 * 59) + ($allPathName == null ? 43 : $allPathName.hashCode());
|
}
|
|
public String toString() {
|
return "TransferDirectoryDto(name=" + getName() + ", groupAllPath=" + getGroupAllPath() + ", allPathName=" + getAllPathName() + ", groupId=" + getGroupId() + ", deptId=" + getDeptId() + ", workstationId=" + getWorkstationId() + ")";
|
}
|
|
public TransferDirectoryDto() {
|
}
|
|
public TransferDirectoryDto(final String name, final String groupAllPath, final String allPathName, final Long groupId, final Long deptId, final Long workstationId) {
|
this.name = name;
|
this.groupAllPath = groupAllPath;
|
this.allPathName = allPathName;
|
this.groupId = groupId;
|
this.deptId = deptId;
|
this.workstationId = workstationId;
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
public String getGroupAllPath() {
|
return this.groupAllPath;
|
}
|
|
public String getAllPathName() {
|
return this.allPathName;
|
}
|
|
public Long getGroupId() {
|
return this.groupId;
|
}
|
|
public Long getDeptId() {
|
return this.deptId;
|
}
|
|
public Long getWorkstationId() {
|
return this.workstationId;
|
}
|
}
|