package cn.ezhizao.project.business.companyFollow.domain;

import cn.ezhizao.framework.aspectj.lang.annotation.Excel;
import cn.ezhizao.framework.web.domain.BaseEntity;
import cn.ezhizao.project.system.domain.SysFileStorage;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 客户跟进记录对象 biz_company_follow_detail
 *
 * @author ruoyi
 * @date 2023-10-17
 */
@Data
@TableName(value = "biz_company_follow_detail")
public class BizCompanyFollowDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 客户外键 */
    @ApiModelProperty(value = "${comment}")
    private Long companyId;

    /** 跟进方式，对应数据字典id */
    @ApiModelProperty(value = "${comment}")
    private Long followTypeId;


    @ApiModelProperty("跟进方式")
    @TableField(exist = false)
    private String followMode;

    /** 跟进类型，对应数据字典id */
    @ApiModelProperty(value = "${comment}")
    private Long followCategoryId;


    @ApiModelProperty("跟进类型")
    @TableField(exist = false)
    private String followCategory;

    /** 跟进时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "跟进时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "跟进时间")
    private Date followDate;

    /** 下次跟进时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下次跟进时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "下次跟进时间")
    private Date nextFollowDate;

    /** 跟进内容 */
    @Excel(name = "跟进内容")
    @ApiModelProperty(value = "跟进内容")
    private String content;

    /** 主程序账套外键 */
    @ApiModelProperty(value = "跟进内容")
    private Long tenantId;

    @TableField(exist = false)
    private boolean asc;

    @TableField(exist = false)
    private List<SysFileStorage> files;

}
