heheng
2024-11-20 2d27b24029adafdbfc5703b38a519d65beda6a68
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
package com.gkhy.system.domain;
 
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 javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
 
 
/**
 * 项目附件对象 project_file
 *
 * @author expert
 * @date 2024-11-14
 */
@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;
 
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id",required = true)
    @NotNull(message = "参数不能为空")
    private Long projectId;
 
    /**
     * 项目附件类型1审批单附件2项目附件
     */
    @ApiModelProperty(value = "项目附件类型1审批单附件2项目附件")
    @NotBlank(message = "项目附件类型不能为空")
    private String module;
 
    /**
     * 本地路径
     */
    @Excel(name = "本地路径")
    @ApiModelProperty(value = "本地路径")
    private String filePath;
 
    /**
     * 访问路径
     */
    @Excel(name = "访问路径")
    @ApiModelProperty(value = "访问路径")
    private String fileUrl;
 
    /**
     * 附件名称
     */
    @ApiModelProperty(value = "附件名称")
    private String fileName;
 
    /**
     * 后缀
     */
    @ApiModelProperty(value = "后缀")
    private String fileSuffix;
 
    /**
     * 附件描述
     */
    @ApiModelProperty(value = "附件描述")
    private String fileDesc;
 
    /**
     * 文件大小
     */
    @ApiModelProperty(value = "文件大小")
    private Long fileSize;
 
    /**
     * 文件类型
     */
    @ApiModelProperty(value = "文件类型")
    private String fileType;
 
    /**
     * 删除标志(0代表存在,1代表删除,默认0)
     */
    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();
    }
}