heheng
2024-11-20 2d27b24029adafdbfc5703b38a519d65beda6a68
expert-system/src/main/java/com/gkhy/system/domain/ProjectFile.java
@@ -3,10 +3,16 @@
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gkhy.common.annotation.Excel;
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 com.rchuing.sis.common.annotation.Excel;
import com.rchuing.sis.common.core.domain.BaseEntity;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
/**
 * 项目附件对象 project_file
@@ -14,135 +20,171 @@
 * @author expert
 * @date 2024-11-14
 */
        @TableName(resultMap = "com.gkhy.system.mapper.ProjectFileMapper.ProjectFileResult")
        public class ProjectFile extends BaseEntity
        {
        private static final long serialVersionUID = 1L;
@TableName(resultMap = "com.gkhy.system.mapper.ProjectFileMapper.ProjectFileResult")
@ApiModel(value = "项目附件对象", description = "项目附件对象表")
public class ProjectFile extends BaseEntity {
    private static final long serialVersionUID = 1L;
                /** $column.columnComment */
            @TableId(value = "id", type = IdType.AUTO)
        private Long id;
    /**
     * $column.columnComment
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
                /** 项目id */
                @Excel(name = "项目id")
        private Long projectId;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id",required = true)
    @NotNull(message = "参数不能为空")
    private Long projectId;
                /** 项目附件类型1审批单附件2项目附件 */
                @Excel(name = "项目附件类型1审批单附件2项目附件")
        private String module;
    /**
     * 项目附件类型1审批单附件2项目附件
     */
    @ApiModelProperty(value = "项目附件类型1审批单附件2项目附件")
    @NotBlank(message = "项目附件类型不能为空")
    private String module;
                /** 本地路径 */
                @Excel(name = "本地路径")
        private String filePath;
    /**
     * 本地路径
     */
    @Excel(name = "本地路径")
    @ApiModelProperty(value = "本地路径")
    private String filePath;
                /** 访问路径 */
                @Excel(name = "访问路径")
        private String fileUrl;
    /**
     * 访问路径
     */
    @Excel(name = "访问路径")
    @ApiModelProperty(value = "访问路径")
    private String fileUrl;
                /** 附件名称 */
                @Excel(name = "附件名称")
        private String fileName;
    /**
     * 附件名称
     */
    @ApiModelProperty(value = "附件名称")
    private String fileName;
                /** 后缀 */
                @Excel(name = "后缀")
        private String fileSuffix;
    /**
     * 后缀
     */
    @ApiModelProperty(value = "后缀")
    private String fileSuffix;
                /** 附件描述 */
                @Excel(name = "附件描述")
        private String fileDesc;
    /**
     * 附件描述
     */
    @ApiModelProperty(value = "附件描述")
    private String fileDesc;
                /** 文件大小 */
                @Excel(name = "文件大小")
        private Long fileSize;
    /**
     * 文件大小
     */
    @ApiModelProperty(value = "文件大小")
    private Long fileSize;
                /** 文件类型 */
                @Excel(name = "文件类型")
        private String fileType;
    /**
     * 文件类型
     */
    @ApiModelProperty(value = "文件类型")
    private String fileType;
                /** 删除标志(0代表存在,1代表删除,默认0) */
        private Long delFlag;
    /**
     * 删除标志(0代表存在,1代表删除,默认0)
     */
    private Long delFlag;
                public void setId(Long id) {
                    this.id = id;
                }
    public void setId(Long id) {
        this.id = id;
    }
                public Long getId() {
                    return id;
                }
                public void setProjectId(Long projectId) {
                    this.projectId = projectId;
                }
    public Long getId() {
        return id;
    }
                public Long getProjectId() {
                    return projectId;
                }
                public void setModule(String module) {
                    this.module = module;
                }
    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }
                public String getModule() {
                    return module;
                }
                public void setFilePath(String filePath) {
                    this.filePath = filePath;
                }
    public Long getProjectId() {
        return projectId;
    }
                public String getFilePath() {
                    return filePath;
                }
                public void setFileUrl(String fileUrl) {
                    this.fileUrl = fileUrl;
                }
    public void setModule(String module) {
        this.module = module;
    }
                public String getFileUrl() {
                    return fileUrl;
                }
                public void setFileName(String fileName) {
                    this.fileName = fileName;
                }
    public String getModule() {
        return module;
    }
                public String getFileName() {
                    return fileName;
                }
                public void setFileSuffix(String fileSuffix) {
                    this.fileSuffix = fileSuffix;
                }
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
                public String getFileSuffix() {
                    return fileSuffix;
                }
                public void setFileDesc(String fileDesc) {
                    this.fileDesc = fileDesc;
                }
    public String getFilePath() {
        return filePath;
    }
                public String getFileDesc() {
                    return fileDesc;
                }
                public void setFileSize(Long fileSize) {
                    this.fileSize = fileSize;
                }
    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }
                public Long getFileSize() {
                    return fileSize;
                }
                public void setFileType(String fileType) {
                    this.fileType = fileType;
                }
    public String getFileUrl() {
        return fileUrl;
    }
                public String getFileType() {
                    return fileType;
                }
                public void setDelFlag(Long delFlag) {
                    this.delFlag = delFlag;
                }
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
                public Long getDelFlag() {
                    return delFlag;
                }
    public String getFileName() {
        return fileName;
    }
        @Override
        public String toString() {
            return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
    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())
@@ -158,6 +200,6 @@
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                    .toString();
        }
        }
                .toString();
    }
}