| 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(); | 
|     } | 
|   | 
| } |