cy
2023-12-02 b7a353e571a503a3dfb970af069efc0a65208839
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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
 
package com.consum.model.po;
 
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.walker.jdbc.BasePo;
 
/**
 * 表名:FIN_FILE *
 * @author genrator
 */
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class FinFile extends BasePo<FinFile> {
    // 序列化版本号
    private static final long serialVersionUID = 1L;
 
    // 主键
    private Long id = null;
    @JsonIgnore
    protected boolean isset_id = false;
 
    // 属性列表
    private Long createTime = null;
    @JsonIgnore
    protected boolean isset_createTime = false;
 
    private String userName = null;
    @JsonIgnore
    protected boolean isset_userName = false;
 
    private String contentType = null;
    @JsonIgnore
    protected boolean isset_contentType = false;
 
    private String fileName = null;
    @JsonIgnore
    protected boolean isset_fileName = false;
 
    private String fileExt = null;
    @JsonIgnore
    protected boolean isset_fileExt = false;
 
    private String filePath = null;
    @JsonIgnore
    protected boolean isset_filePath = false;
 
    private Long fileSize = null;
    @JsonIgnore
    protected boolean isset_fileSize = false;
 
    private String fileType = null;
    @JsonIgnore
    protected boolean isset_fileType = false;
 
    private String summary = null;
    @JsonIgnore
    protected boolean isset_summary = false;
 
    /**
     * 默认构造函数
     */
    public FinFile() {
    }
 
    /**
     * 根据主键构造对象
     */
    public FinFile(Long id) {
        this.setId(id);
    }
 
    /**
     * 设置主键值
     */
    @Override
    public void setPkValue(Object value) {
        this.setId((Long) value);
    }
 
    public Long getId() {
        return this.id;
    }
 
    public void setId(Long id) {
        this.id = id;
        this.isset_id = true;
    }
 
    @JsonIgnore
    public boolean isEmptyId() {
        return this.id == null;
    }
 
    public Long getCreateTime() {
        return this.createTime;
    }
 
    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
        this.isset_createTime = true;
    }
 
    @JsonIgnore
    public boolean isEmptyCreateTime() {
        return this.createTime == null;
    }
 
    public String getUserName() {
        return this.userName;
    }
 
    public void setUserName(String userName) {
        this.userName = userName;
        this.isset_userName = true;
    }
 
    @JsonIgnore
    public boolean isEmptyUserName() {
        return this.userName == null || this.userName.length() == 0;
    }
 
    public String getContentType() {
        return this.contentType;
    }
 
    public void setContentType(String contentType) {
        this.contentType = contentType;
        this.isset_contentType = true;
    }
 
    @JsonIgnore
    public boolean isEmptyContentType() {
        return this.contentType == null || this.contentType.length() == 0;
    }
 
    public String getFileName() {
        return this.fileName;
    }
 
    public void setFileName(String fileName) {
        this.fileName = fileName;
        this.isset_fileName = true;
    }
 
    @JsonIgnore
    public boolean isEmptyFileName() {
        return this.fileName == null || this.fileName.length() == 0;
    }
 
    public String getFileExt() {
        return this.fileExt;
    }
 
    public void setFileExt(String fileExt) {
        this.fileExt = fileExt;
        this.isset_fileExt = true;
    }
 
    @JsonIgnore
    public boolean isEmptyFileExt() {
        return this.fileExt == null || this.fileExt.length() == 0;
    }
 
    public String getFilePath() {
        return this.filePath;
    }
 
    public void setFilePath(String filePath) {
        this.filePath = filePath;
        this.isset_filePath = true;
    }
 
    @JsonIgnore
    public boolean isEmptyFilePath() {
        return this.filePath == null || this.filePath.length() == 0;
    }
 
    public Long getFileSize() {
        return this.fileSize;
    }
 
    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
        this.isset_fileSize = true;
    }
 
    @JsonIgnore
    public boolean isEmptyFileSize() {
        return this.fileSize == null;
    }
 
    public String getFileType() {
        return this.fileType;
    }
 
    public void setFileType(String fileType) {
        this.fileType = fileType;
        this.isset_fileType = true;
    }
 
    @JsonIgnore
    public boolean isEmptyFileType() {
        return this.fileType == null || this.fileType.length() == 0;
    }
 
    public String getSummary() {
        return this.summary;
    }
 
    public void setSummary(String summary) {
        this.summary = summary;
        this.isset_summary = true;
    }
 
    @JsonIgnore
    public boolean isEmptySummary() {
        return this.summary == null || this.summary.length() == 0;
    }
 
    /**
     * 重写 toString() 方法
     */
    @Override
    public String toString() {
        return new StringBuilder()
                .append("id=").append(this.id)
                .append("createTime=").append(this.createTime)
                .append("userName=").append(this.userName)
                .append("contentType=").append(this.contentType)
                .append("fileName=").append(this.fileName)
                .append("fileExt=").append(this.fileExt)
                .append("filePath=").append(this.filePath)
                .append("fileSize=").append(this.fileSize)
                .append("fileType=").append(this.fileType)
                .append("summary=").append(this.summary)
                .toString();
    }
 
    /**
     * 克隆
     */
    public FinFile $clone() {
        FinFile fin_file = new FinFile();
 
        // 数据库名称
        //fin_file.setDatabaseName_(this.getDatabaseName_());
 
        // 主键
        if (this.isset_id) {
            fin_file.setId(this.getId());
        }
        // 普通属性
        if (this.isset_createTime) {
            fin_file.setCreateTime(this.getCreateTime());
        }
        if (this.isset_userName) {
            fin_file.setUserName(this.getUserName());
        }
        if (this.isset_contentType) {
            fin_file.setContentType(this.getContentType());
        }
        if (this.isset_fileName) {
            fin_file.setFileName(this.getFileName());
        }
        if (this.isset_fileExt) {
            fin_file.setFileExt(this.getFileExt());
        }
        if (this.isset_filePath) {
            fin_file.setFilePath(this.getFilePath());
        }
        if (this.isset_fileSize) {
            fin_file.setFileSize(this.getFileSize());
        }
        if (this.isset_fileType) {
            fin_file.setFileType(this.getFileType());
        }
        if (this.isset_summary) {
            fin_file.setSummary(this.getSummary());
        }
        return fin_file;
    }
}