yangys
2024-05-07 9b677ea5c6978788d135fc15da3d78c5a93789c2
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
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
package com.qianwen.smartman.modules.dnc.entity;
 
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.qianwen.core.mp.base.BaseEntity;
 
@ApiModel(value = "DncArtFile对象", description = "工艺包文件")
@TableName("blade_dnc_art_file")
public class DncArtFile extends BaseEntity {
    private static final long serialVersionUID = 1;
    @ApiModelProperty("备注")
    private String remark;
    private String tenantId;
    @ApiModelProperty("文件id")
    private Long fileId;
    @ApiModelProperty("工艺包id")
    private Long artBagId;
    @ApiModelProperty("文件来源 1 我的文档  2 工位文件 3 本地上传 4 归档文件")
    private Integer sourceType;
    @ApiModelProperty("文件类别(1:程序,2 文档)")
    private Integer fileType;
    @ApiModelProperty("原始文件名称")
    private String originalFilename;
    @ApiModelProperty("文件名称")
    private String filename;
    private Long contentLength;
    @ApiModelProperty("文件md5值")
    private String contentMd5;
    private String contentType;
    @ApiModelProperty("文件的objectKey")
    private String objectKey;
    private String suffix;
    @ApiModelProperty("文件归属:1 工位  2 工厂")
    private Integer documentOwnership;
    @ApiModelProperty("是否为当前版本 默认 1是 0否")
    private Integer isCurrent;
    @ApiModelProperty("文件链接")
    private String link;
    @ApiModelProperty("存储空间 固定空间1 常规空间2")
    private Integer storageSpace;
    @ApiModelProperty("版本")
    private Integer version;
 
    public DncArtFile setRemark(final String remark) {
        this.remark = remark;
        return this;
    }
 
    public DncArtFile setTenantId(final String tenantId) {
        this.tenantId = tenantId;
        return this;
    }
 
    public DncArtFile setFileId(final Long fileId) {
        this.fileId = fileId;
        return this;
    }
 
    public DncArtFile setArtBagId(final Long artBagId) {
        this.artBagId = artBagId;
        return this;
    }
 
    public DncArtFile setSourceType(final Integer sourceType) {
        this.sourceType = sourceType;
        return this;
    }
 
    public DncArtFile setFileType(final Integer fileType) {
        this.fileType = fileType;
        return this;
    }
 
    public DncArtFile setOriginalFilename(final String originalFilename) {
        this.originalFilename = originalFilename;
        return this;
    }
 
    public DncArtFile setFilename(final String filename) {
        this.filename = filename;
        return this;
    }
 
    public DncArtFile setContentLength(final Long contentLength) {
        this.contentLength = contentLength;
        return this;
    }
 
    public DncArtFile setContentMd5(final String contentMd5) {
        this.contentMd5 = contentMd5;
        return this;
    }
 
    public DncArtFile setContentType(final String contentType) {
        this.contentType = contentType;
        return this;
    }
 
    public DncArtFile setObjectKey(final String objectKey) {
        this.objectKey = objectKey;
        return this;
    }
 
    public DncArtFile setSuffix(final String suffix) {
        this.suffix = suffix;
        return this;
    }
 
    public DncArtFile setDocumentOwnership(final Integer documentOwnership) {
        this.documentOwnership = documentOwnership;
        return this;
    }
 
    public DncArtFile setIsCurrent(final Integer isCurrent) {
        this.isCurrent = isCurrent;
        return this;
    }
 
    public DncArtFile setLink(final String link) {
        this.link = link;
        return this;
    }
 
    public DncArtFile setStorageSpace(final Integer storageSpace) {
        this.storageSpace = storageSpace;
        return this;
    }
 
    public DncArtFile setVersion(final Integer version) {
        this.version = version;
        return this;
    }
 
    public String toString() {
        return "DncArtFile(remark=" + getRemark() + ", tenantId=" + getTenantId() + ", fileId=" + getFileId() + ", artBagId=" + getArtBagId() + ", sourceType=" + getSourceType() + ", fileType=" + getFileType() + ", originalFilename=" + getOriginalFilename() + ", filename=" + getFilename() + ", contentLength=" + getContentLength() + ", contentMd5=" + getContentMd5() + ", contentType=" + getContentType() + ", objectKey=" + getObjectKey() + ", suffix=" + getSuffix() + ", documentOwnership=" + getDocumentOwnership() + ", isCurrent=" + getIsCurrent() + ", link=" + getLink() + ", storageSpace=" + getStorageSpace() + ", version=" + getVersion() + ")";
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof DncArtFile) {
            DncArtFile other = (DncArtFile) o;
            if (other.canEqual(this) && super.equals(o)) {
                Object this$fileId = getFileId();
                Object other$fileId = other.getFileId();
                if (this$fileId == null) {
                    if (other$fileId != null) {
                        return false;
                    }
                } else if (!this$fileId.equals(other$fileId)) {
                    return false;
                }
                Object this$artBagId = getArtBagId();
                Object other$artBagId = other.getArtBagId();
                if (this$artBagId == null) {
                    if (other$artBagId != null) {
                        return false;
                    }
                } else if (!this$artBagId.equals(other$artBagId)) {
                    return false;
                }
                Object this$sourceType = getSourceType();
                Object other$sourceType = other.getSourceType();
                if (this$sourceType == null) {
                    if (other$sourceType != null) {
                        return false;
                    }
                } else if (!this$sourceType.equals(other$sourceType)) {
                    return false;
                }
                Object this$fileType = getFileType();
                Object other$fileType = other.getFileType();
                if (this$fileType == null) {
                    if (other$fileType != null) {
                        return false;
                    }
                } else if (!this$fileType.equals(other$fileType)) {
                    return false;
                }
                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$documentOwnership = getDocumentOwnership();
                Object other$documentOwnership = other.getDocumentOwnership();
                if (this$documentOwnership == null) {
                    if (other$documentOwnership != null) {
                        return false;
                    }
                } else if (!this$documentOwnership.equals(other$documentOwnership)) {
                    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$storageSpace = getStorageSpace();
                Object other$storageSpace = other.getStorageSpace();
                if (this$storageSpace == null) {
                    if (other$storageSpace != null) {
                        return false;
                    }
                } else if (!this$storageSpace.equals(other$storageSpace)) {
                    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$remark = getRemark();
                Object other$remark = other.getRemark();
                if (this$remark == null) {
                    if (other$remark != null) {
                        return false;
                    }
                } else if (!this$remark.equals(other$remark)) {
                    return false;
                }
                Object this$tenantId = getTenantId();
                Object other$tenantId = other.getTenantId();
                if (this$tenantId == null) {
                    if (other$tenantId != null) {
                        return false;
                    }
                } else if (!this$tenantId.equals(other$tenantId)) {
                    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$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 DncArtFile;
    }
 
    public int hashCode() {
        int result = super.hashCode();
        Object $fileId = getFileId();
        int result2 = (result * 59) + ($fileId == null ? 43 : $fileId.hashCode());
        Object $artBagId = getArtBagId();
        int result3 = (result2 * 59) + ($artBagId == null ? 43 : $artBagId.hashCode());
        Object $sourceType = getSourceType();
        int result4 = (result3 * 59) + ($sourceType == null ? 43 : $sourceType.hashCode());
        Object $fileType = getFileType();
        int result5 = (result4 * 59) + ($fileType == null ? 43 : $fileType.hashCode());
        Object $contentLength = getContentLength();
        int result6 = (result5 * 59) + ($contentLength == null ? 43 : $contentLength.hashCode());
        Object $documentOwnership = getDocumentOwnership();
        int result7 = (result6 * 59) + ($documentOwnership == null ? 43 : $documentOwnership.hashCode());
        Object $isCurrent = getIsCurrent();
        int result8 = (result7 * 59) + ($isCurrent == null ? 43 : $isCurrent.hashCode());
        Object $storageSpace = getStorageSpace();
        int result9 = (result8 * 59) + ($storageSpace == null ? 43 : $storageSpace.hashCode());
        Object $version = getVersion();
        int result10 = (result9 * 59) + ($version == null ? 43 : $version.hashCode());
        Object $remark = getRemark();
        int result11 = (result10 * 59) + ($remark == null ? 43 : $remark.hashCode());
        Object $tenantId = getTenantId();
        int result12 = (result11 * 59) + ($tenantId == null ? 43 : $tenantId.hashCode());
        Object $originalFilename = getOriginalFilename();
        int result13 = (result12 * 59) + ($originalFilename == null ? 43 : $originalFilename.hashCode());
        Object $filename = getFilename();
        int result14 = (result13 * 59) + ($filename == null ? 43 : $filename.hashCode());
        Object $contentMd5 = getContentMd5();
        int result15 = (result14 * 59) + ($contentMd5 == null ? 43 : $contentMd5.hashCode());
        Object $contentType = getContentType();
        int result16 = (result15 * 59) + ($contentType == null ? 43 : $contentType.hashCode());
        Object $objectKey = getObjectKey();
        int result17 = (result16 * 59) + ($objectKey == null ? 43 : $objectKey.hashCode());
        Object $suffix = getSuffix();
        int result18 = (result17 * 59) + ($suffix == null ? 43 : $suffix.hashCode());
        Object $link = getLink();
        return (result18 * 59) + ($link == null ? 43 : $link.hashCode());
    }
 
    public String getRemark() {
        return this.remark;
    }
 
    public String getTenantId() {
        return this.tenantId;
    }
 
    public Long getFileId() {
        return this.fileId;
    }
 
    public Long getArtBagId() {
        return this.artBagId;
    }
 
    public Integer getSourceType() {
        return this.sourceType;
    }
 
    public Integer getFileType() {
        return this.fileType;
    }
 
    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 String getContentType() {
        return this.contentType;
    }
 
    public String getObjectKey() {
        return this.objectKey;
    }
 
    public String getSuffix() {
        return this.suffix;
    }
 
    public Integer getDocumentOwnership() {
        return this.documentOwnership;
    }
 
    public Integer getIsCurrent() {
        return this.isCurrent;
    }
 
    public String getLink() {
        return this.link;
    }
 
    public Integer getStorageSpace() {
        return this.storageSpace;
    }
 
    public Integer getVersion() {
        return this.version;
    }
}