package com.ruoyi.project.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 附件对象 tb_file
 * 
 * @author ruoyi
 * @date 2024-04-19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TbFile extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    @TableId(type = IdType.AUTO)
    private Long id;

    /** 关联业务id */
    @Excel(name = "关联业务id")
    private Long businessId;

    /** 业务类型（0：代理商档案  1：线索  2 客户 3 报价效果图  4 土建模版） */
    @Excel(name = "业务类型", readConverterExp = "0=：代理商档案,1=：线索,2=,客=户,3=,报=价效果图,4=,土=建模版")
    private String businessType;

    /** 实际文件名 */
    @Excel(name = "实际文件名")
    private String realFileName;

    /** 服务器文件名 */
    @Excel(name = "服务器文件名")
    private String serverFileName;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String filePath;

    /** 删除标记（0：启用  1：停用） */
    private String delFlag;

    @TableField(exist = false)
    private String tradeType;
    @TableField(exist = false)
    private String targetPort;
    
    public TbFile(Long businessId, String businessType, String realFileName, String serverFileName, String filePath) {
        this.businessId = businessId;
        this.businessType = businessType;
        this.realFileName = realFileName;
        this.serverFileName = serverFileName;
        this.filePath = filePath;
    }

}
