package com.ruoyi.project.business.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.EqualsAndHashCode;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import java.util.Date;
import java.util.List;

import lombok.Data;
import org.springframework.data.annotation.Transient;

/**
 * 【请填写功能名称】对象 tc_follow
 * 
 * @author ruoyi
 * @date 2024-04-07
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class TcFollow extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 跟进记录ID */
    private Long followId;

    /** 跟进类别（0线索 1客户  2项目） */
    @Excel(name = "跟进类别", readConverterExp = "0=线索,1=客户,2=项目")
    private String followType;

    private String[] followTypeArray;

    /** 跟进记录编号 */
    @Excel(name = "跟进记录编号")
    private String followNo;

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

    /** 跟进对象（线索联系人/客户名称/开发商名称） */
    @Excel(name = "跟进对象", readConverterExp = "线索联系人/客户名称/开发商名称")
    private String followPerson;

    /** 跟进方式（关联字典表，电话、微信/短信、电子邮件、面谈） */
    @Excel(name = "跟进方式", readConverterExp = "电话、微信/短信、电子邮件、面谈")
    private String followWay;

    private String[] followWayArray;
    /** 联系人 */
    @Excel(name = "联系人")
    private String contactPerson;
    private String contactPersonName;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contact;

    /**  跟进时间 */
    @Excel(name = "跟进时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date followTime;

    /** 跟进内容及结果 */
    @Excel(name = "跟进内容及结果")
    private String followDesc;

    /** 数据权限字符 */
    @Excel(name = "数据权限字符")
    private String permissionChar;

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

    private String language;

    /** 附件 */
    @Transient
    private String annex;

    @Transient
    private List<TbFile> tbFiles;

    @Transient
    private List<String> annexList;

    @Transient
    private String createByName;

    @Transient
    private List<Long> followIds;
    
    /** 跟进人 */
    @Transient
    private String follower;
    
    @TableField(exist = false)
    private List<Long> countries;
}
