package com.iformall.domain.po.invest;

import com.baomidou.mybatisplus.annotation.TableName;


import com.baomidou.mybatisplus.annotation.Version;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.iformall.common.LogColumn;
import com.iformall.enums.EnumCustomerRatingType;
import com.iformall.enums.EnumCustomerType;
import com.iformall.enums.EnumInvestChannel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 客户列表
 *
 * @author
 * @email
 * @date 2019-09-24 14:48:11
 */
@Data
@TableName("invest_customer")
@EqualsAndHashCode(callSuper = true)
public class InvestCustomerEntity extends InvestBaseEntity {

	/**
	 * 客户名称
	 */
	@LogColumn
	@io.swagger.annotations.ApiModelProperty(value = "客户名称", name = "name")
	private String name;
	/**
	 * 电话
	 */
	@LogColumn
	@io.swagger.annotations.ApiModelProperty(value = "电话", name = "phone")
	private String phone;
	/**
	 * 经营业态
	 */
	@LogColumn
	@io.swagger.annotations.ApiModelProperty(value = "经营业态", name = "businessId")
	private Integer businessId;
	/**
	 * 品牌ID
	 */
	@LogColumn
	@io.swagger.annotations.ApiModelProperty(value = "品牌ID", name = "brandId")
	private Long brandId;
	/**
	 * 客户分类：0-潜在客户;1-意向客户;2-合作客户;3-谈判失败
	 */
	@io.swagger.annotations.ApiModelProperty(value = "客户分类：0-潜在客户;1-意向客户;2-合作客户;3-谈判失败", name = "type")
	@LogColumn
	private EnumCustomerType type;
	/**
	 * 客户预评级：0-无;1-主力店;2-次主力店;3-甲;4-乙;5-丙
	 */
	@io.swagger.annotations.ApiModelProperty(value = "客户预评级：0-无;1-主力店;2-次主力店;3-甲;4-乙;5-丙", name = "rating")
	@LogColumn
	private EnumCustomerRatingType rating;

    /**
     * 招商渠道：0-无;1-电视;2-广播;3-报纸;4-刊物;5-物联网;6-招商活动;7-中介机构;8-自定义渠道
     */
    @io.swagger.annotations.ApiModelProperty(value = "招商渠道：0-无;1-电视;2-广播;3-报纸;4-刊物;5-物联网;6-招商活动;7-中介机构;8-自定义渠道", name = "investChannel")
    @LogColumn
    private EnumInvestChannel investChannel ;

	/**
	 * 更新时间
	 */
	@io.swagger.annotations.ApiModelProperty(value = "更新时间", name = "updateDate", example = "2018-10-01 12:18:48",readOnly = true)
	@JsonProperty(access = JsonProperty.Access.READ_ONLY)
	@Version
	private Date updateDate;

}
