package com.bs.df.domain;

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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.bs.common.annotation.Excel;
import com.bs.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

/**
 * 业务线索对象 df_biz_clue
 *
 * @author bs
 * @date 2024-04-06
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("df_biz_clue")
@Data
public class DfBizClue extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    /** 数据类型0客户1经纪 */

    @Excel(name = "数据类型",dictType = "product_classify")
    @ApiModelProperty(value = "数据类型")
    private String dataType;

    /** 线索类型 */

    @Excel(name = "线索类型",dictType = "clue_type")
    @ApiModelProperty(value = "线索类型")
    private String clueType;

    /** 用户id */

    @ApiModelProperty(value = "用户id")
    private Long userId;

    /** 用户的唯一标识 */

    @ApiModelProperty(value = "用户的唯一标识")
    private String openId;

    /** 公众号绑定id */

    @ApiModelProperty(value = "公众号绑定id")
    private String unionId;

    @ApiModelProperty(value = "平台来源")
    private String fromType;

    /** 用户昵称 */

    @Excel(name = "用户昵称")
    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    /** 用户名称 */

    @ApiModelProperty(value = "用户名称")
    private String userName;

    /** 浏览时间 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "浏览时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "浏览时间")
    private Date browseTime;


    @Excel(name = "业务链接")
    @ApiModelProperty(value = "业务链接")
    private String businessLinks;

    @Excel(name = "头像链接")
    @ApiModelProperty(value = "头像链接")
    private String avatarLink;

    @Excel(name = "手机号")
    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "分享用户")
    private String shareUser;

    @ApiModelProperty(value = "订单id")
    private String orderId;

    /** 访问数量 */

    @TableField(exist = false)
    private Integer visitsNum;

    /** 客户数量 */

    @TableField(exist = false)
    private Integer userNum;


    @TableField(exist = false)
    private List<String> avatarLinks;


    /**
     * 0产品、1名片、2文章
     *
     * */

    @TableField(exist = false)
    private String classify;

    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" )
    private Date createTimeVo;

    /**
     * 为1时查询
     *
     * */
    @TableField(exist = false)
    private String hasOrder;

    @TableField(exist = false)
    private String oldUserId;

    @TableField(exist = false)
    private String newUserId;


    @TableField(exist = false)
    private Long brokerId;

    @TableField(exist = false)
    private String realName;

}
