package com.yunzhi.marketing.entity;

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 lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *  
 * </p>
 *
 * @author jobob
 * @since 2019-09-17
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ta_channel")
public class TaChannel implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 渠道id
     */
    @TableId(value = "channel_id", type = IdType.AUTO)
    private Integer channelId;

    /**
     * 渠道名称
     */
    private String channelName;

    /**
     * 渠道唯一识别码
     */
    private String channelCode;

    /**
     * 渠道联系人
     */
    private String channelContact;

    /**
     * 联系电话
     */
    private String contactTel;

    /**
     * 经纪人数
     */
    @TableField(exist = false)
    private Integer brokerCount;

    /**
     * 有效推荐数
     */
    @TableField(exist = false)
    private Integer recommendCount;

    /**
     * 邀请经纪人数
     */
    @TableField(exist = false)
    private Integer inviteCount;

    @TableField(exist = false)
    private Integer customerNum;

    /**
     * 创建时间
     */
    private LocalDateTime createDate;

    /**
     * 组织结构id
     */
    private String institutionId;

    /**
     * 公司id
     */
    private Integer orgId;

    /**
     * 楼盘id
     */
    private String buildingId;

    /**
     * 说明描述
     */
    @TableField(value = "`explain`")
    private String explain;
}
