From b3631dd074d7fa5520f7afcf2cdc1ab681700e7c Mon Sep 17 00:00:00 2001 From: heheng <heheng@123456> Date: 星期四, 21 十一月 2024 17:18:15 +0800 Subject: [PATCH] 部分修改 --- expert-system/src/main/java/com/gkhy/system/domain/ProjectFile.java | 119 +++++------------------------------------------------------ 1 files changed, 10 insertions(+), 109 deletions(-) diff --git a/expert-system/src/main/java/com/gkhy/system/domain/ProjectFile.java b/expert-system/src/main/java/com/gkhy/system/domain/ProjectFile.java index 29a626d..e036c7e 100644 --- a/expert-system/src/main/java/com/gkhy/system/domain/ProjectFile.java +++ b/expert-system/src/main/java/com/gkhy/system/domain/ProjectFile.java @@ -7,8 +7,8 @@ import com.gkhy.common.core.domain.BaseEntity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import org.apache.commons.lang3.builder.ToStringBuilder; -import org.apache.commons.lang3.builder.ToStringStyle; +import lombok.Data; +import lombok.EqualsAndHashCode; import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; @@ -20,8 +20,10 @@ * @author expert * @date 2024-11-14 */ +@EqualsAndHashCode(callSuper = true) @TableName(resultMap = "com.gkhy.system.mapper.ProjectFileMapper.ProjectFileResult") @ApiModel(value = "项目附件对象", description = "项目附件对象表") +@Data public class ProjectFile extends BaseEntity { private static final long serialVersionUID = 1L; @@ -66,6 +68,12 @@ private String fileName; /** + * 附件名称 + */ + @ApiModelProperty(value = "附件原名称") + private String originalFileName; + + /** * 后缀 */ @ApiModelProperty(value = "后缀") @@ -94,112 +102,5 @@ */ private Long delFlag; - public void setId(Long id) { - this.id = id; - } - public Long getId() { - return id; - } - - public void setProjectId(Long projectId) { - this.projectId = projectId; - } - - public Long getProjectId() { - return projectId; - } - - public void setModule(String module) { - this.module = module; - } - - public String getModule() { - return module; - } - - public void setFilePath(String filePath) { - this.filePath = filePath; - } - - public String getFilePath() { - return filePath; - } - - public void setFileUrl(String fileUrl) { - this.fileUrl = fileUrl; - } - - public String getFileUrl() { - return fileUrl; - } - - public void setFileName(String fileName) { - this.fileName = fileName; - } - - public String getFileName() { - return fileName; - } - - public void setFileSuffix(String fileSuffix) { - this.fileSuffix = fileSuffix; - } - - public String getFileSuffix() { - return fileSuffix; - } - - public void setFileDesc(String fileDesc) { - this.fileDesc = fileDesc; - } - - public String getFileDesc() { - return fileDesc; - } - - public void setFileSize(Long fileSize) { - this.fileSize = fileSize; - } - - public Long getFileSize() { - return fileSize; - } - - public void setFileType(String fileType) { - this.fileType = fileType; - } - - public String getFileType() { - return fileType; - } - - public void setDelFlag(Long delFlag) { - this.delFlag = delFlag; - } - - public Long getDelFlag() { - return delFlag; - } - - @Override - public String toString() { - return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) - .append("id", getId()) - .append("projectId", getProjectId()) - .append("module", getModule()) - .append("filePath", getFilePath()) - .append("fileUrl", getFileUrl()) - .append("fileName", getFileName()) - .append("fileSuffix", getFileSuffix()) - .append("fileDesc", getFileDesc()) - .append("fileSize", getFileSize()) - .append("fileType", getFileType()) - .append("delFlag", getDelFlag()) - .append("createBy", getCreateBy()) - .append("createTime", getCreateTime()) - .append("updateBy", getUpdateBy()) - .append("updateTime", getUpdateTime()) - .toString(); - } } \ No newline at end of file -- Gitblit v1.9.2