wlzboy
2025-11-08 cdcc529ce5fb9aa0dd1dea5bb2a620fc09b7d25c
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
package com.ruoyi.system.domain;
 
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.beans.factory.annotation.Value;
 
/**
 * 任务附件对象 sys_task_attachment
 * 
 * @author ruoyi
 * @date 2024-01-15
 */
public class SysTaskAttachment extends BaseEntity {
    private static final long serialVersionUID = 1L;
 
    /** 附件ID */
    private Long attachmentId;
 
    /** 任务ID */
    @Excel(name = "任务ID")
    private Long taskId;
 
    /** 文件名 */
    @Excel(name = "文件名")
    private String fileName;
 
    /** 文件路径 */
    @Excel(name = "文件路径")
    private String filePath;
 
    /** 文件大小(字节) */
    @Excel(name = "文件大小")
    private Long fileSize;
 
    /** 文件类型 */
    @Excel(name = "文件类型")
    private String fileType;
 
 
    /** 附件分类 */
    @Excel(name = "附件分类")
    private String attachmentCategory;
 
    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date uploadTime;
 
    /** 上传者 */
    @Excel(name = "上传者")
    private String uploadBy;
    
    /** 是否已同步到ImageData (0-未同步 1-已同步) */
    private Integer syncedToImageData;
    
    /** 同步时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date syncTime;
    
    /** 关联的ImageData ID */
    private Long imageDataId;
    
    /** 完整文件URL(不存储,用于返回给前端) */
    private String fileUrl;
 
    public void setAttachmentId(Long attachmentId) {
        this.attachmentId = attachmentId;
    }
 
    public Long getAttachmentId() {
        return attachmentId;
    }
 
    public void setTaskId(Long taskId) {
        this.taskId = taskId;
    }
 
    public Long getTaskId() {
        return taskId;
    }
 
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
 
    public String getFileName() {
        return fileName;
    }
 
    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }
 
    public String getFilePath() {
        return filePath;
    }
 
    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 setAttachmentCategory(String attachmentCategory) {
        this.attachmentCategory = attachmentCategory;
    }
 
    public String getAttachmentCategory() {
        return attachmentCategory;
    }
 
    public void setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
    }
 
    public Date getUploadTime() {
        return uploadTime;
    }
 
    public void setUploadBy(String uploadBy) {
        this.uploadBy = uploadBy;
    }
 
    public String getUploadBy() {
        return uploadBy;
    }
    
    public void setFileUrl(String fileUrl) {
        this.fileUrl = fileUrl;
    }
    
    public String getFileUrl() {
        return fileUrl;
    }
    
    public void setSyncedToImageData(Integer syncedToImageData) {
        this.syncedToImageData = syncedToImageData;
    }
    
    public Integer getSyncedToImageData() {
        return syncedToImageData;
    }
    
    public void setSyncTime(Date syncTime) {
        this.syncTime = syncTime;
    }
    
    public Date getSyncTime() {
        return syncTime;
    }
    
    public void setImageDataId(Long imageDataId) {
        this.imageDataId = imageDataId;
    }
    
    public Long getImageDataId() {
        return imageDataId;
    }
 
    @Override
    public String toString() {
        return "SysTaskAttachment{" +
                "attachmentId=" + attachmentId +
                ", taskId=" + taskId +
                ", fileName='" + fileName + '\'' +
                ", filePath='" + filePath + '\'' +
                ", fileSize=" + fileSize +
                ", fileType='" + fileType + '\'' +
                ", attachmentCategory='" + attachmentCategory + '\'' +
                ", uploadTime=" + uploadTime +
                ", uploadBy='" + uploadBy + '\'' +
                '}';
    }
}