czt
2024-06-28 54b61daf58037385cb8d46404b12a95786c7c8f3
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
package com.fzzy.async.fzzy30.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 FileInfo 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;
 
    @PropertyDef(label = "创建人")
    @Column(name = "CREATE_USER_", length = 50)
    private String createUser;
 
    @PropertyDef(label = "类型", description = "附件类型")
    @Column(name = "TYPE_", length = 10)
    private String type;
 
}