package com.qianwen.smartman.modules.dnc.vo;
|
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
import java.util.Date;
|
import com.qianwen.smartman.common.constant.DateConstant;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/dnc/vo/WorkstationDirectoryFileVO.class */
|
public class WorkstationDirectoryFileVO implements Serializable {
|
private static final long serialVersionUID = 1;
|
@JsonSerialize(using = ToStringSerializer.class)
|
@ApiModelProperty(value = "id", dataType = "java.lang.String")
|
private Long id;
|
@JsonSerialize(using = ToStringSerializer.class)
|
@ApiModelProperty(value = "工位id", dataType = "java.lang.String")
|
private Long workstationId;
|
@ApiModelProperty("工位名称")
|
private String workstationName;
|
@ApiModelProperty("文档文件id")
|
private Long fileId;
|
@ApiModelProperty("文件类别:程序 1 文件 2")
|
private Integer fileType;
|
@ApiModelProperty("文件来源 1 我的文档 2 本地文件 3 工艺管理 4 FTP/回传文件")
|
private Integer fileSource;
|
@ApiModelProperty("文件名")
|
private String filename;
|
@ApiModelProperty("原始文件名")
|
private String originalFilename;
|
@ApiModelProperty("文件md5值")
|
private String contentMd5;
|
@ApiModelProperty("文件大小")
|
private Long contentLength;
|
@DateTimeFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
@ApiModelProperty("文件最后修改时间")
|
@JsonFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
private Date lastModified;
|
@ApiModelProperty("对象MIME类型")
|
private String contentType;
|
@ApiModelProperty("文件的objectKey")
|
private String objectKey;
|
@ApiModelProperty("文件的后缀")
|
private String suffix;
|
@ApiModelProperty("文件外链")
|
private String link;
|
@ApiModelProperty("存储位置:1 常规空间 2 固定空间")
|
private Integer storageSpace;
|
@ApiModelProperty("固定空间目录id 根目录是常规空间 其他节点是固定空间文件")
|
private Long storageSpaceId;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/dnc/vo/WorkstationDirectoryFileVO$WorkstationDirectoryFileVOBuilder.class */
|
public static class WorkstationDirectoryFileVOBuilder {
|
private Long id;
|
private Long workstationId;
|
private String workstationName;
|
private Long fileId;
|
private Integer fileType;
|
private Integer fileSource;
|
private String filename;
|
private String originalFilename;
|
private String contentMd5;
|
private Long contentLength;
|
private Date lastModified;
|
private String contentType;
|
private String objectKey;
|
private String suffix;
|
private String link;
|
private Integer storageSpace;
|
private Long storageSpaceId;
|
|
WorkstationDirectoryFileVOBuilder() {
|
}
|
|
public WorkstationDirectoryFileVOBuilder id(final Long id) {
|
this.id = id;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder workstationId(final Long workstationId) {
|
this.workstationId = workstationId;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder workstationName(final String workstationName) {
|
this.workstationName = workstationName;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder fileId(final Long fileId) {
|
this.fileId = fileId;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder fileType(final Integer fileType) {
|
this.fileType = fileType;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder fileSource(final Integer fileSource) {
|
this.fileSource = fileSource;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder filename(final String filename) {
|
this.filename = filename;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder originalFilename(final String originalFilename) {
|
this.originalFilename = originalFilename;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder contentMd5(final String contentMd5) {
|
this.contentMd5 = contentMd5;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder contentLength(final Long contentLength) {
|
this.contentLength = contentLength;
|
return this;
|
}
|
|
@JsonFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
public WorkstationDirectoryFileVOBuilder lastModified(final Date lastModified) {
|
this.lastModified = lastModified;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder contentType(final String contentType) {
|
this.contentType = contentType;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder objectKey(final String objectKey) {
|
this.objectKey = objectKey;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder suffix(final String suffix) {
|
this.suffix = suffix;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder link(final String link) {
|
this.link = link;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder storageSpace(final Integer storageSpace) {
|
this.storageSpace = storageSpace;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVOBuilder storageSpaceId(final Long storageSpaceId) {
|
this.storageSpaceId = storageSpaceId;
|
return this;
|
}
|
|
public WorkstationDirectoryFileVO build() {
|
return new WorkstationDirectoryFileVO(this.id, this.workstationId, this.workstationName, this.fileId, this.fileType, this.fileSource, this.filename, this.originalFilename, this.contentMd5, this.contentLength, this.lastModified, this.contentType, this.objectKey, this.suffix, this.link, this.storageSpace, this.storageSpaceId);
|
}
|
|
public String toString() {
|
return "WorkstationDirectoryFileVO.WorkstationDirectoryFileVOBuilder(id=" + this.id + ", workstationId=" + this.workstationId + ", workstationName=" + this.workstationName + ", fileId=" + this.fileId + ", fileType=" + this.fileType + ", fileSource=" + this.fileSource + ", filename=" + this.filename + ", originalFilename=" + this.originalFilename + ", contentMd5=" + this.contentMd5 + ", contentLength=" + this.contentLength + ", lastModified=" + this.lastModified + ", contentType=" + this.contentType + ", objectKey=" + this.objectKey + ", suffix=" + this.suffix + ", link=" + this.link + ", storageSpace=" + this.storageSpace + ", storageSpaceId=" + this.storageSpaceId + ")";
|
}
|
}
|
|
public void setId(final Long id) {
|
this.id = id;
|
}
|
|
public void setWorkstationId(final Long workstationId) {
|
this.workstationId = workstationId;
|
}
|
|
public void setWorkstationName(final String workstationName) {
|
this.workstationName = workstationName;
|
}
|
|
public void setFileId(final Long fileId) {
|
this.fileId = fileId;
|
}
|
|
public void setFileType(final Integer fileType) {
|
this.fileType = fileType;
|
}
|
|
public void setFileSource(final Integer fileSource) {
|
this.fileSource = fileSource;
|
}
|
|
public void setFilename(final String filename) {
|
this.filename = filename;
|
}
|
|
public void setOriginalFilename(final String originalFilename) {
|
this.originalFilename = originalFilename;
|
}
|
|
public void setContentMd5(final String contentMd5) {
|
this.contentMd5 = contentMd5;
|
}
|
|
public void setContentLength(final Long contentLength) {
|
this.contentLength = contentLength;
|
}
|
|
@JsonFormat(pattern = DateConstant.PATTERN_DATE_TIME)
|
public void setLastModified(final Date lastModified) {
|
this.lastModified = lastModified;
|
}
|
|
public void setContentType(final String contentType) {
|
this.contentType = contentType;
|
}
|
|
public void setObjectKey(final String objectKey) {
|
this.objectKey = objectKey;
|
}
|
|
public void setSuffix(final String suffix) {
|
this.suffix = suffix;
|
}
|
|
public void setLink(final String link) {
|
this.link = link;
|
}
|
|
public void setStorageSpace(final Integer storageSpace) {
|
this.storageSpace = storageSpace;
|
}
|
|
public void setStorageSpaceId(final Long storageSpaceId) {
|
this.storageSpaceId = storageSpaceId;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof WorkstationDirectoryFileVO) {
|
WorkstationDirectoryFileVO other = (WorkstationDirectoryFileVO) o;
|
if (other.canEqual(this)) {
|
Object this$id = getId();
|
Object other$id = other.getId();
|
if (this$id == null) {
|
if (other$id != null) {
|
return false;
|
}
|
} else if (!this$id.equals(other$id)) {
|
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$fileId = getFileId();
|
Object other$fileId = other.getFileId();
|
if (this$fileId == null) {
|
if (other$fileId != null) {
|
return false;
|
}
|
} else if (!this$fileId.equals(other$fileId)) {
|
return false;
|
}
|
Object this$fileType = getFileType();
|
Object other$fileType = other.getFileType();
|
if (this$fileType == null) {
|
if (other$fileType != null) {
|
return false;
|
}
|
} else if (!this$fileType.equals(other$fileType)) {
|
return false;
|
}
|
Object this$fileSource = getFileSource();
|
Object other$fileSource = other.getFileSource();
|
if (this$fileSource == null) {
|
if (other$fileSource != null) {
|
return false;
|
}
|
} else if (!this$fileSource.equals(other$fileSource)) {
|
return false;
|
}
|
Object this$contentLength = getContentLength();
|
Object other$contentLength = other.getContentLength();
|
if (this$contentLength == null) {
|
if (other$contentLength != null) {
|
return false;
|
}
|
} else if (!this$contentLength.equals(other$contentLength)) {
|
return false;
|
}
|
Object this$storageSpace = getStorageSpace();
|
Object other$storageSpace = other.getStorageSpace();
|
if (this$storageSpace == null) {
|
if (other$storageSpace != null) {
|
return false;
|
}
|
} else if (!this$storageSpace.equals(other$storageSpace)) {
|
return false;
|
}
|
Object this$storageSpaceId = getStorageSpaceId();
|
Object other$storageSpaceId = other.getStorageSpaceId();
|
if (this$storageSpaceId == null) {
|
if (other$storageSpaceId != null) {
|
return false;
|
}
|
} else if (!this$storageSpaceId.equals(other$storageSpaceId)) {
|
return false;
|
}
|
Object this$workstationName = getWorkstationName();
|
Object other$workstationName = other.getWorkstationName();
|
if (this$workstationName == null) {
|
if (other$workstationName != null) {
|
return false;
|
}
|
} else if (!this$workstationName.equals(other$workstationName)) {
|
return false;
|
}
|
Object this$filename = getFilename();
|
Object other$filename = other.getFilename();
|
if (this$filename == null) {
|
if (other$filename != null) {
|
return false;
|
}
|
} else if (!this$filename.equals(other$filename)) {
|
return false;
|
}
|
Object this$originalFilename = getOriginalFilename();
|
Object other$originalFilename = other.getOriginalFilename();
|
if (this$originalFilename == null) {
|
if (other$originalFilename != null) {
|
return false;
|
}
|
} else if (!this$originalFilename.equals(other$originalFilename)) {
|
return false;
|
}
|
Object this$contentMd5 = getContentMd5();
|
Object other$contentMd5 = other.getContentMd5();
|
if (this$contentMd5 == null) {
|
if (other$contentMd5 != null) {
|
return false;
|
}
|
} else if (!this$contentMd5.equals(other$contentMd5)) {
|
return false;
|
}
|
Object this$lastModified = getLastModified();
|
Object other$lastModified = other.getLastModified();
|
if (this$lastModified == null) {
|
if (other$lastModified != null) {
|
return false;
|
}
|
} else if (!this$lastModified.equals(other$lastModified)) {
|
return false;
|
}
|
Object this$contentType = getContentType();
|
Object other$contentType = other.getContentType();
|
if (this$contentType == null) {
|
if (other$contentType != null) {
|
return false;
|
}
|
} else if (!this$contentType.equals(other$contentType)) {
|
return false;
|
}
|
Object this$objectKey = getObjectKey();
|
Object other$objectKey = other.getObjectKey();
|
if (this$objectKey == null) {
|
if (other$objectKey != null) {
|
return false;
|
}
|
} else if (!this$objectKey.equals(other$objectKey)) {
|
return false;
|
}
|
Object this$suffix = getSuffix();
|
Object other$suffix = other.getSuffix();
|
if (this$suffix == null) {
|
if (other$suffix != null) {
|
return false;
|
}
|
} else if (!this$suffix.equals(other$suffix)) {
|
return false;
|
}
|
Object this$link = getLink();
|
Object other$link = other.getLink();
|
return this$link == null ? other$link == null : this$link.equals(other$link);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof WorkstationDirectoryFileVO;
|
}
|
|
public int hashCode() {
|
Object $id = getId();
|
int result = (1 * 59) + ($id == null ? 43 : $id.hashCode());
|
Object $workstationId = getWorkstationId();
|
int result2 = (result * 59) + ($workstationId == null ? 43 : $workstationId.hashCode());
|
Object $fileId = getFileId();
|
int result3 = (result2 * 59) + ($fileId == null ? 43 : $fileId.hashCode());
|
Object $fileType = getFileType();
|
int result4 = (result3 * 59) + ($fileType == null ? 43 : $fileType.hashCode());
|
Object $fileSource = getFileSource();
|
int result5 = (result4 * 59) + ($fileSource == null ? 43 : $fileSource.hashCode());
|
Object $contentLength = getContentLength();
|
int result6 = (result5 * 59) + ($contentLength == null ? 43 : $contentLength.hashCode());
|
Object $storageSpace = getStorageSpace();
|
int result7 = (result6 * 59) + ($storageSpace == null ? 43 : $storageSpace.hashCode());
|
Object $storageSpaceId = getStorageSpaceId();
|
int result8 = (result7 * 59) + ($storageSpaceId == null ? 43 : $storageSpaceId.hashCode());
|
Object $workstationName = getWorkstationName();
|
int result9 = (result8 * 59) + ($workstationName == null ? 43 : $workstationName.hashCode());
|
Object $filename = getFilename();
|
int result10 = (result9 * 59) + ($filename == null ? 43 : $filename.hashCode());
|
Object $originalFilename = getOriginalFilename();
|
int result11 = (result10 * 59) + ($originalFilename == null ? 43 : $originalFilename.hashCode());
|
Object $contentMd5 = getContentMd5();
|
int result12 = (result11 * 59) + ($contentMd5 == null ? 43 : $contentMd5.hashCode());
|
Object $lastModified = getLastModified();
|
int result13 = (result12 * 59) + ($lastModified == null ? 43 : $lastModified.hashCode());
|
Object $contentType = getContentType();
|
int result14 = (result13 * 59) + ($contentType == null ? 43 : $contentType.hashCode());
|
Object $objectKey = getObjectKey();
|
int result15 = (result14 * 59) + ($objectKey == null ? 43 : $objectKey.hashCode());
|
Object $suffix = getSuffix();
|
int result16 = (result15 * 59) + ($suffix == null ? 43 : $suffix.hashCode());
|
Object $link = getLink();
|
return (result16 * 59) + ($link == null ? 43 : $link.hashCode());
|
}
|
|
public String toString() {
|
return "WorkstationDirectoryFileVO(id=" + getId() + ", workstationId=" + getWorkstationId() + ", workstationName=" + getWorkstationName() + ", fileId=" + getFileId() + ", fileType=" + getFileType() + ", fileSource=" + getFileSource() + ", filename=" + getFilename() + ", originalFilename=" + getOriginalFilename() + ", contentMd5=" + getContentMd5() + ", contentLength=" + getContentLength() + ", lastModified=" + getLastModified() + ", contentType=" + getContentType() + ", objectKey=" + getObjectKey() + ", suffix=" + getSuffix() + ", link=" + getLink() + ", storageSpace=" + getStorageSpace() + ", storageSpaceId=" + getStorageSpaceId() + ")";
|
}
|
|
public static WorkstationDirectoryFileVOBuilder builder() {
|
return new WorkstationDirectoryFileVOBuilder();
|
}
|
|
public WorkstationDirectoryFileVO() {
|
}
|
|
public WorkstationDirectoryFileVO(final Long id, final Long workstationId, final String workstationName, final Long fileId, final Integer fileType, final Integer fileSource, final String filename, final String originalFilename, final String contentMd5, final Long contentLength, final Date lastModified, final String contentType, final String objectKey, final String suffix, final String link, final Integer storageSpace, final Long storageSpaceId) {
|
this.id = id;
|
this.workstationId = workstationId;
|
this.workstationName = workstationName;
|
this.fileId = fileId;
|
this.fileType = fileType;
|
this.fileSource = fileSource;
|
this.filename = filename;
|
this.originalFilename = originalFilename;
|
this.contentMd5 = contentMd5;
|
this.contentLength = contentLength;
|
this.lastModified = lastModified;
|
this.contentType = contentType;
|
this.objectKey = objectKey;
|
this.suffix = suffix;
|
this.link = link;
|
this.storageSpace = storageSpace;
|
this.storageSpaceId = storageSpaceId;
|
}
|
|
public Long getId() {
|
return this.id;
|
}
|
|
public Long getWorkstationId() {
|
return this.workstationId;
|
}
|
|
public String getWorkstationName() {
|
return this.workstationName;
|
}
|
|
public Long getFileId() {
|
return this.fileId;
|
}
|
|
public Integer getFileType() {
|
return this.fileType;
|
}
|
|
public Integer getFileSource() {
|
return this.fileSource;
|
}
|
|
public String getFilename() {
|
return this.filename;
|
}
|
|
public String getOriginalFilename() {
|
return this.originalFilename;
|
}
|
|
public String getContentMd5() {
|
return this.contentMd5;
|
}
|
|
public Long getContentLength() {
|
return this.contentLength;
|
}
|
|
public Date getLastModified() {
|
return this.lastModified;
|
}
|
|
public String getContentType() {
|
return this.contentType;
|
}
|
|
public String getObjectKey() {
|
return this.objectKey;
|
}
|
|
public String getSuffix() {
|
return this.suffix;
|
}
|
|
public String getLink() {
|
return this.link;
|
}
|
|
public Integer getStorageSpace() {
|
return this.storageSpace;
|
}
|
|
public Long getStorageSpaceId() {
|
return this.storageSpaceId;
|
}
|
}
|