package com.qianwen.smartman.modules.dnc.entity; import com.baomidou.mybatisplus.annotation.TableName; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.Date; import com.qianwen.core.mp.base.BaseEntity; @ApiModel(value = "DncFactoryFile对象", description = "blade_dnc_factory_file") @TableName("blade_dnc_factory_file") public class DncFactoryFile extends BaseEntity { private static final long serialVersionUID = 1; @ApiModelProperty("原始文件名称") private String originalFilename; @ApiModelProperty("文件名称") private String filename; private Long contentLength; @ApiModelProperty("文件md5值") private String contentMd5; @ApiModelProperty("最后修改时间") private Date lastModified; private String contentType; @ApiModelProperty("文件的objectKey") private String objectKey; private String suffix; @ApiModelProperty("文件地址") private String link; @ApiModelProperty("是否为当前版本,1是0否") private Integer isCurrent; @ApiModelProperty("版本") private Integer version; @ApiModelProperty("文件是否归档 1 未归档 2 已归档") private Integer whetherArchive; public DncFactoryFile setOriginalFilename(final String originalFilename) { this.originalFilename = originalFilename; return this; } public DncFactoryFile setFilename(final String filename) { this.filename = filename; return this; } public DncFactoryFile setContentLength(final Long contentLength) { this.contentLength = contentLength; return this; } public DncFactoryFile setContentMd5(final String contentMd5) { this.contentMd5 = contentMd5; return this; } public DncFactoryFile setLastModified(final Date lastModified) { this.lastModified = lastModified; return this; } public DncFactoryFile setContentType(final String contentType) { this.contentType = contentType; return this; } public DncFactoryFile setObjectKey(final String objectKey) { this.objectKey = objectKey; return this; } public DncFactoryFile setSuffix(final String suffix) { this.suffix = suffix; return this; } public DncFactoryFile setLink(final String link) { this.link = link; return this; } public DncFactoryFile setIsCurrent(final Integer isCurrent) { this.isCurrent = isCurrent; return this; } public DncFactoryFile setVersion(final Integer version) { this.version = version; return this; } public DncFactoryFile setWhetherArchive(final Integer whetherArchive) { this.whetherArchive = whetherArchive; return this; } public String toString() { return "DncFactoryFile(originalFilename=" + getOriginalFilename() + ", filename=" + getFilename() + ", contentLength=" + getContentLength() + ", contentMd5=" + getContentMd5() + ", lastModified=" + getLastModified() + ", contentType=" + getContentType() + ", objectKey=" + getObjectKey() + ", suffix=" + getSuffix() + ", link=" + getLink() + ", isCurrent=" + getIsCurrent() + ", version=" + getVersion() + ", whetherArchive=" + getWhetherArchive() + ")"; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof DncFactoryFile) { DncFactoryFile other = (DncFactoryFile) o; if (other.canEqual(this) && super.equals(o)) { 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$isCurrent = getIsCurrent(); Object other$isCurrent = other.getIsCurrent(); if (this$isCurrent == null) { if (other$isCurrent != null) { return false; } } else if (!this$isCurrent.equals(other$isCurrent)) { 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$whetherArchive = getWhetherArchive(); Object other$whetherArchive = other.getWhetherArchive(); if (this$whetherArchive == null) { if (other$whetherArchive != null) { return false; } } else if (!this$whetherArchive.equals(other$whetherArchive)) { 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$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 DncFactoryFile; } public int hashCode() { int result = super.hashCode(); Object $contentLength = getContentLength(); int result2 = (result * 59) + ($contentLength == null ? 43 : $contentLength.hashCode()); Object $isCurrent = getIsCurrent(); int result3 = (result2 * 59) + ($isCurrent == null ? 43 : $isCurrent.hashCode()); Object $version = getVersion(); int result4 = (result3 * 59) + ($version == null ? 43 : $version.hashCode()); Object $whetherArchive = getWhetherArchive(); int result5 = (result4 * 59) + ($whetherArchive == null ? 43 : $whetherArchive.hashCode()); Object $originalFilename = getOriginalFilename(); int result6 = (result5 * 59) + ($originalFilename == null ? 43 : $originalFilename.hashCode()); Object $filename = getFilename(); int result7 = (result6 * 59) + ($filename == null ? 43 : $filename.hashCode()); Object $contentMd5 = getContentMd5(); int result8 = (result7 * 59) + ($contentMd5 == null ? 43 : $contentMd5.hashCode()); Object $lastModified = getLastModified(); int result9 = (result8 * 59) + ($lastModified == null ? 43 : $lastModified.hashCode()); Object $contentType = getContentType(); int result10 = (result9 * 59) + ($contentType == null ? 43 : $contentType.hashCode()); Object $objectKey = getObjectKey(); int result11 = (result10 * 59) + ($objectKey == null ? 43 : $objectKey.hashCode()); Object $suffix = getSuffix(); int result12 = (result11 * 59) + ($suffix == null ? 43 : $suffix.hashCode()); Object $link = getLink(); return (result12 * 59) + ($link == null ? 43 : $link.hashCode()); } 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 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 getIsCurrent() { return this.isCurrent; } public Integer getVersion() { return this.version; } public Integer getWhetherArchive() { return this.whetherArchive; } }