| | |
| | | |
| | | 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 |
| | |
| | | @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") |
| | |
| | | /** 上传者 */ |
| | | @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; |
| | |
| | | return fileType; |
| | | } |
| | | |
| | | public void setAttachmentCategory(String attachmentCategory) { |
| | | this.attachmentCategory = attachmentCategory; |
| | | } |
| | | |
| | | public String getAttachmentCategory() { |
| | | return attachmentCategory; |
| | | } |
| | | |
| | | public void setUploadTime(Date uploadTime) { |
| | | this.uploadTime = uploadTime; |
| | | } |
| | |
| | | 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() { |
| | |
| | | ", filePath='" + filePath + '\'' + |
| | | ", fileSize=" + fileSize + |
| | | ", fileType='" + fileType + '\'' + |
| | | ", attachmentCategory='" + attachmentCategory + '\'' + |
| | | ", uploadTime=" + uploadTime + |
| | | ", uploadBy='" + uploadBy + '\'' + |
| | | '}'; |