package com.qianwen.smartman.modules.dnc.vo; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.Date; import javax.validation.constraints.Size; import com.qianwen.core.tool.utils.Func; import com.qianwen.smartman.modules.dnc.enums.DncEnums; @ApiModel(value = "DncArtFileVo对象", description = "工艺包文件") /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/dnc/vo/DncArtFileVO.class */ public class DncArtFileVO implements Serializable { @ApiModelProperty("备注") @Size(max = 255, message = "备注长度不能超过255") private String remark; @Size(max = 10, message = "长度不能超过10") private String tenantId; @ApiModelProperty("文件id") private Long fileId; @ApiModelProperty("工艺包id") private Long artBagId; @ApiModelProperty("文件来源 1 我的文档 2 工位文件 3 本地上传 4 归档文件") private Integer sourceType; @ApiModelProperty("文件来源 1 我的文档 2 工位文件 3 本地上传 4 归档文件") private String sourceTypeDesc; @ApiModelProperty("文件类别(1:程序,2 文档)") private Integer fileType; @ApiModelProperty("文件类别(1:程序,2 文档)") private String fileTypeDesc; @ApiModelProperty("原始文件名称") @Size(max = 100, message = "原始文件名称长度不能超过100") private String originalFilename; @ApiModelProperty("文件名称") @Size(max = 100, message = "文件名称长度不能超过100") private String filename; private Long contentLength; @ApiModelProperty("文件md5值") @Size(max = 100, message = "文件md5值长度不能超过100") private String contentMd5; @Size(max = 100, message = "长度不能超过100") private String contentType; @ApiModelProperty("文件的objectKey") @Size(max = 100, message = "文件的objectKey长度不能超过100") private String objectKey; @Size(max = 50, message = "长度不能超过50") private String suffix; private Long id; private Integer status; @ApiModelProperty("文件链接") private String link; @ApiModelProperty("存储空间 固定空间1 常规空间2") private Integer storageSpace; @ApiModelProperty("文件归属:1 工位 2 工厂") private Integer documentOwnership; @ApiModelProperty("文件归属:1 工位 2 工厂") private String documentOwnershipDesc; @ApiModelProperty("创建人id") private Long createUser; @ApiModelProperty("创建人") private String createUserName; @ApiModelProperty("创建时间") private Date createTime; @ApiModelProperty("更新时间") private Date updateTime; @ApiModelProperty("更新人id") private Long updateUser; @ApiModelProperty("更新人") private String updateUserName; @ApiModelProperty("版本") private Integer version; @ApiModelProperty("版本") private String versionDesc; @ApiModelProperty("源路径") private String sourcePath; public void setRemark(final String remark) { this.remark = remark; } public void setTenantId(final String tenantId) { this.tenantId = tenantId; } public void setFileId(final Long fileId) { this.fileId = fileId; } public void setArtBagId(final Long artBagId) { this.artBagId = artBagId; } public void setSourceTypeDesc(final String sourceTypeDesc) { this.sourceTypeDesc = sourceTypeDesc; } public void setFileTypeDesc(final String fileTypeDesc) { this.fileTypeDesc = fileTypeDesc; } public void setOriginalFilename(final String originalFilename) { this.originalFilename = originalFilename; } public void setFilename(final String filename) { this.filename = filename; } public void setContentLength(final Long contentLength) { this.contentLength = contentLength; } public void setContentMd5(final String contentMd5) { this.contentMd5 = contentMd5; } 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 setId(final Long id) { this.id = id; } public void setStatus(final Integer status) { this.status = status; } public void setLink(final String link) { this.link = link; } public void setStorageSpace(final Integer storageSpace) { this.storageSpace = storageSpace; } public void setDocumentOwnershipDesc(final String documentOwnershipDesc) { this.documentOwnershipDesc = documentOwnershipDesc; } public void setCreateUser(final Long createUser) { this.createUser = createUser; } public void setCreateUserName(final String createUserName) { this.createUserName = createUserName; } public void setCreateTime(final Date createTime) { this.createTime = createTime; } public void setUpdateTime(final Date updateTime) { this.updateTime = updateTime; } public void setUpdateUser(final Long updateUser) { this.updateUser = updateUser; } public void setUpdateUserName(final String updateUserName) { this.updateUserName = updateUserName; } public void setVersion(final Integer version) { this.version = version; } public void setVersionDesc(final String versionDesc) { this.versionDesc = versionDesc; } public void setSourcePath(final String sourcePath) { this.sourcePath = sourcePath; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof DncArtFileVO) { DncArtFileVO other = (DncArtFileVO) o; if (other.canEqual(this)) { 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$artBagId = getArtBagId(); Object other$artBagId = other.getArtBagId(); if (this$artBagId == null) { if (other$artBagId != null) { return false; } } else if (!this$artBagId.equals(other$artBagId)) { return false; } Object this$sourceType = getSourceType(); Object other$sourceType = other.getSourceType(); if (this$sourceType == null) { if (other$sourceType != null) { return false; } } else if (!this$sourceType.equals(other$sourceType)) { 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$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$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$status = getStatus(); Object other$status = other.getStatus(); if (this$status == null) { if (other$status != null) { return false; } } else if (!this$status.equals(other$status)) { 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$documentOwnership = getDocumentOwnership(); Object other$documentOwnership = other.getDocumentOwnership(); if (this$documentOwnership == null) { if (other$documentOwnership != null) { return false; } } else if (!this$documentOwnership.equals(other$documentOwnership)) { return false; } Object this$createUser = getCreateUser(); Object other$createUser = other.getCreateUser(); if (this$createUser == null) { if (other$createUser != null) { return false; } } else if (!this$createUser.equals(other$createUser)) { return false; } Object this$updateUser = getUpdateUser(); Object other$updateUser = other.getUpdateUser(); if (this$updateUser == null) { if (other$updateUser != null) { return false; } } else if (!this$updateUser.equals(other$updateUser)) { return false; } Object this$version = getVersion(); Object other$version = other.getVersion(); if (this$version == null) { if (other$version != null) { return false; } } else if (!this$version.equals(other$version)) { return false; } Object this$remark = getRemark(); Object other$remark = other.getRemark(); if (this$remark == null) { if (other$remark != null) { return false; } } else if (!this$remark.equals(other$remark)) { return false; } Object this$tenantId = getTenantId(); Object other$tenantId = other.getTenantId(); if (this$tenantId == null) { if (other$tenantId != null) { return false; } } else if (!this$tenantId.equals(other$tenantId)) { return false; } Object this$sourceTypeDesc = getSourceTypeDesc(); Object other$sourceTypeDesc = other.getSourceTypeDesc(); if (this$sourceTypeDesc == null) { if (other$sourceTypeDesc != null) { return false; } } else if (!this$sourceTypeDesc.equals(other$sourceTypeDesc)) { return false; } Object this$fileTypeDesc = getFileTypeDesc(); Object other$fileTypeDesc = other.getFileTypeDesc(); if (this$fileTypeDesc == null) { if (other$fileTypeDesc != null) { return false; } } else if (!this$fileTypeDesc.equals(other$fileTypeDesc)) { 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$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$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$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(); if (this$link == null) { if (other$link != null) { return false; } } else if (!this$link.equals(other$link)) { return false; } Object this$documentOwnershipDesc = getDocumentOwnershipDesc(); Object other$documentOwnershipDesc = other.getDocumentOwnershipDesc(); if (this$documentOwnershipDesc == null) { if (other$documentOwnershipDesc != null) { return false; } } else if (!this$documentOwnershipDesc.equals(other$documentOwnershipDesc)) { return false; } Object this$createUserName = getCreateUserName(); Object other$createUserName = other.getCreateUserName(); if (this$createUserName == null) { if (other$createUserName != null) { return false; } } else if (!this$createUserName.equals(other$createUserName)) { return false; } Object this$createTime = getCreateTime(); Object other$createTime = other.getCreateTime(); if (this$createTime == null) { if (other$createTime != null) { return false; } } else if (!this$createTime.equals(other$createTime)) { return false; } Object this$updateTime = getUpdateTime(); Object other$updateTime = other.getUpdateTime(); if (this$updateTime == null) { if (other$updateTime != null) { return false; } } else if (!this$updateTime.equals(other$updateTime)) { return false; } Object this$updateUserName = getUpdateUserName(); Object other$updateUserName = other.getUpdateUserName(); if (this$updateUserName == null) { if (other$updateUserName != null) { return false; } } else if (!this$updateUserName.equals(other$updateUserName)) { return false; } Object this$versionDesc = getVersionDesc(); Object other$versionDesc = other.getVersionDesc(); if (this$versionDesc == null) { if (other$versionDesc != null) { return false; } } else if (!this$versionDesc.equals(other$versionDesc)) { return false; } Object this$sourcePath = getSourcePath(); Object other$sourcePath = other.getSourcePath(); return this$sourcePath == null ? other$sourcePath == null : this$sourcePath.equals(other$sourcePath); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof DncArtFileVO; } public int hashCode() { Object $fileId = getFileId(); int result = (1 * 59) + ($fileId == null ? 43 : $fileId.hashCode()); Object $artBagId = getArtBagId(); int result2 = (result * 59) + ($artBagId == null ? 43 : $artBagId.hashCode()); Object $sourceType = getSourceType(); int result3 = (result2 * 59) + ($sourceType == null ? 43 : $sourceType.hashCode()); Object $fileType = getFileType(); int result4 = (result3 * 59) + ($fileType == null ? 43 : $fileType.hashCode()); Object $contentLength = getContentLength(); int result5 = (result4 * 59) + ($contentLength == null ? 43 : $contentLength.hashCode()); Object $id = getId(); int result6 = (result5 * 59) + ($id == null ? 43 : $id.hashCode()); Object $status = getStatus(); int result7 = (result6 * 59) + ($status == null ? 43 : $status.hashCode()); Object $storageSpace = getStorageSpace(); int result8 = (result7 * 59) + ($storageSpace == null ? 43 : $storageSpace.hashCode()); Object $documentOwnership = getDocumentOwnership(); int result9 = (result8 * 59) + ($documentOwnership == null ? 43 : $documentOwnership.hashCode()); Object $createUser = getCreateUser(); int result10 = (result9 * 59) + ($createUser == null ? 43 : $createUser.hashCode()); Object $updateUser = getUpdateUser(); int result11 = (result10 * 59) + ($updateUser == null ? 43 : $updateUser.hashCode()); Object $version = getVersion(); int result12 = (result11 * 59) + ($version == null ? 43 : $version.hashCode()); Object $remark = getRemark(); int result13 = (result12 * 59) + ($remark == null ? 43 : $remark.hashCode()); Object $tenantId = getTenantId(); int result14 = (result13 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode()); Object $sourceTypeDesc = getSourceTypeDesc(); int result15 = (result14 * 59) + ($sourceTypeDesc == null ? 43 : $sourceTypeDesc.hashCode()); Object $fileTypeDesc = getFileTypeDesc(); int result16 = (result15 * 59) + ($fileTypeDesc == null ? 43 : $fileTypeDesc.hashCode()); Object $originalFilename = getOriginalFilename(); int result17 = (result16 * 59) + ($originalFilename == null ? 43 : $originalFilename.hashCode()); Object $filename = getFilename(); int result18 = (result17 * 59) + ($filename == null ? 43 : $filename.hashCode()); Object $contentMd5 = getContentMd5(); int result19 = (result18 * 59) + ($contentMd5 == null ? 43 : $contentMd5.hashCode()); Object $contentType = getContentType(); int result20 = (result19 * 59) + ($contentType == null ? 43 : $contentType.hashCode()); Object $objectKey = getObjectKey(); int result21 = (result20 * 59) + ($objectKey == null ? 43 : $objectKey.hashCode()); Object $suffix = getSuffix(); int result22 = (result21 * 59) + ($suffix == null ? 43 : $suffix.hashCode()); Object $link = getLink(); int result23 = (result22 * 59) + ($link == null ? 43 : $link.hashCode()); Object $documentOwnershipDesc = getDocumentOwnershipDesc(); int result24 = (result23 * 59) + ($documentOwnershipDesc == null ? 43 : $documentOwnershipDesc.hashCode()); Object $createUserName = getCreateUserName(); int result25 = (result24 * 59) + ($createUserName == null ? 43 : $createUserName.hashCode()); Object $createTime = getCreateTime(); int result26 = (result25 * 59) + ($createTime == null ? 43 : $createTime.hashCode()); Object $updateTime = getUpdateTime(); int result27 = (result26 * 59) + ($updateTime == null ? 43 : $updateTime.hashCode()); Object $updateUserName = getUpdateUserName(); int result28 = (result27 * 59) + ($updateUserName == null ? 43 : $updateUserName.hashCode()); Object $versionDesc = getVersionDesc(); int result29 = (result28 * 59) + ($versionDesc == null ? 43 : $versionDesc.hashCode()); Object $sourcePath = getSourcePath(); return (result29 * 59) + ($sourcePath == null ? 43 : $sourcePath.hashCode()); } public String toString() { return "DncArtFileVO(remark=" + getRemark() + ", tenantId=" + getTenantId() + ", fileId=" + getFileId() + ", artBagId=" + getArtBagId() + ", sourceType=" + getSourceType() + ", sourceTypeDesc=" + getSourceTypeDesc() + ", fileType=" + getFileType() + ", fileTypeDesc=" + getFileTypeDesc() + ", originalFilename=" + getOriginalFilename() + ", filename=" + getFilename() + ", contentLength=" + getContentLength() + ", contentMd5=" + getContentMd5() + ", contentType=" + getContentType() + ", objectKey=" + getObjectKey() + ", suffix=" + getSuffix() + ", id=" + getId() + ", status=" + getStatus() + ", link=" + getLink() + ", storageSpace=" + getStorageSpace() + ", documentOwnership=" + getDocumentOwnership() + ", documentOwnershipDesc=" + getDocumentOwnershipDesc() + ", createUser=" + getCreateUser() + ", createUserName=" + getCreateUserName() + ", createTime=" + getCreateTime() + ", updateTime=" + getUpdateTime() + ", updateUser=" + getUpdateUser() + ", updateUserName=" + getUpdateUserName() + ", version=" + getVersion() + ", versionDesc=" + getVersionDesc() + ", sourcePath=" + getSourcePath() + ")"; } public String getRemark() { return this.remark; } public String getTenantId() { return this.tenantId; } public Long getFileId() { return this.fileId; } public Long getArtBagId() { return this.artBagId; } public Integer getSourceType() { return this.sourceType; } public String getSourceTypeDesc() { return this.sourceTypeDesc; } public Integer getFileType() { return this.fileType; } public String getFileTypeDesc() { return this.fileTypeDesc; } public String getOriginalFilename() { return this.originalFilename; } public String getFilename() { return this.filename; } public Long getContentLength() { return this.contentLength; } public String getContentMd5() { return this.contentMd5; } public String getContentType() { return this.contentType; } public String getObjectKey() { return this.objectKey; } public String getSuffix() { return this.suffix; } public Long getId() { return this.id; } public Integer getStatus() { return this.status; } public String getLink() { return this.link; } public Integer getStorageSpace() { return this.storageSpace; } public Integer getDocumentOwnership() { return this.documentOwnership; } public String getDocumentOwnershipDesc() { return this.documentOwnershipDesc; } public Long getCreateUser() { return this.createUser; } public String getCreateUserName() { return this.createUserName; } public Date getCreateTime() { return this.createTime; } public Date getUpdateTime() { return this.updateTime; } public Long getUpdateUser() { return this.updateUser; } public String getUpdateUserName() { return this.updateUserName; } public Integer getVersion() { return this.version; } public String getVersionDesc() { return this.versionDesc; } public String getSourcePath() { return this.sourcePath; } public void setSourceType(Integer sourceType) { this.sourceType = sourceType; if (Func.isNotEmpty(sourceType)) { if (sourceType.equals(DncEnums.ArtBagFileSource.MY_DOCUMENTS.getCode())) { this.sourceTypeDesc = DncEnums.ArtBagFileSource.MY_DOCUMENTS.getName(); } if (sourceType.equals(DncEnums.ArtBagFileSource.WORKSTATION_FILE.getCode())) { this.sourceTypeDesc = DncEnums.ArtBagFileSource.WORKSTATION_FILE.getName(); } if (sourceType.equals(DncEnums.ArtBagFileSource.LOCAL_FILE.getCode())) { this.sourceTypeDesc = DncEnums.ArtBagFileSource.LOCAL_FILE.getName(); } if (sourceType.equals(DncEnums.ArtBagFileSource.ARCHIVE_FILE.getCode())) { this.sourceTypeDesc = DncEnums.ArtBagFileSource.ARCHIVE_FILE.getName(); } } } public void setFileType(Integer fileType) { this.fileType = fileType; if (Func.isNotEmpty(fileType)) { if (fileType.equals(DncEnums.FileType.PROCESSING_PROGRAM.getCode())) { this.fileTypeDesc = DncEnums.FileType.PROCESSING_PROGRAM.getName(); } if (fileType.equals(DncEnums.FileType.PROCESS_DOCUMENTS.getCode())) { this.fileTypeDesc = DncEnums.FileType.PROCESS_DOCUMENTS.getName(); } } } public void setDocumentOwnership(Integer documentOwnership) { this.documentOwnership = documentOwnership; if (Func.isNotEmpty(documentOwnership)) { if (documentOwnership.equals(DncEnums.FileOwnership.WORKSTATION.getCode())) { this.documentOwnershipDesc = DncEnums.FileOwnership.WORKSTATION.getName(); } if (documentOwnership.equals(DncEnums.FileOwnership.FACTORY.getCode())) { this.documentOwnershipDesc = DncEnums.FileOwnership.FACTORY.getName(); } } } }