CZT
2023-11-17 7acebbb64838e26f38f45b9ce51b568841eb5a18
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
package com.fzzy.async.fzzy35.entity;
 
import com.bstek.dorado.annotation.PropertyDef;
import lombok.Data;
 
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
 
/**
 * 附件信息,系统所有类型附件均使用该类
 * <p>
 * 其中图片信息,支持直接保存到数据库中,使用字段:imgData
 * 
 * 附件信息全部保存在服务器硬盘中,不再保存数据库
 *
 * @author Andy
 */
@Data
@Entity
@Table(name = "D_FILE")
public class Fz35FileInfo implements Serializable {
 
    private static final long serialVersionUID = 86018008520229637L;
 
    @Id
    @Column(name = "FILE_ID_", length = 40)
    @PropertyDef(label = "附件ID")
    private String fileId;
 
    @PropertyDef(label = "组织编号")
    @Column(name = "COMPANY_ID_", length = 10)
    private String companyId;
 
    @Column(name = "BIZ_ID_", length = 40)
    @PropertyDef(label = "业务ID")
    private String bizId;
 
    @Column(name = "BIZ_TAG_", length = 20)
    @PropertyDef(label = "业务标签", description = "附件在绑定业务的时候可能需要其他标识区分")
    private String bizTag;
 
    @PropertyDef(label = "文件名称")
    @Column(name = "FILE_NAME_", length = 100)
    private String fileName;
 
    @PropertyDef(label = "创建时间")
    @Column(name = "CREATE_TIME_")
    private Date createTime;
    
    public Fz35FileInfo(){
        super();
    }
    
    public Fz35FileInfo(String fileName, String type, String imgDataStr, Date createTime) {
        this.fileName = fileName;
        this.createTime = createTime;
    }
 
    public Fz35FileInfo(Fz35FileInfo file){
        this.createTime = file.getCreateTime();
        this.fileName = file.getFileName();
    }
 
}