package com.dk.mdm.model.response.mst;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dk.common.infrastructure.annotaiton.ExportTitle;
import com.dk.common.infrastructure.handler.TimestampTypeHandler;
import com.dk.common.infrastructure.handler.UuidTypeHandler;
import com.dk.common.model.pojo.PageInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

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

/**
 *  客户跟进人
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ExportTitle("客户跟进人")
@TableName(value = "t_crm_cus_follow_staff", autoResultMap = true)
@ApiModel(value="实体类：客户跟进人", description="表名：t_crm_cus_follow_staff")
public class CusFollowStaffResponse implements Serializable {

    /*
     * 数据库字段
     */

    /**
     * 客户ID
     */

    @ApiModelProperty(value = "客户ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String cusId;


    /**
     * 跟进人
     */
    @Excel(name = "跟进人")
    @ApiModelProperty(value = "跟进人")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String followStaff;


    /**
     * 最后跟进ID
     */
    @Excel(name = "最后跟进ID")
    @ApiModelProperty(value = "最后跟进ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String lastFollowId;


    /**
     * 最后跟进状态 (【系统字典】跟进状态：报备、跟进、邀约、报价、成交)
     */
    @Excel(name = "最后跟进状态 (【系统字典】跟进状态：报备、跟进、邀约、报价、成交)")
    @ApiModelProperty(value = "最后跟进状态 (【系统字典】跟进状态：报备、跟进、邀约、报价、成交)")
    private String lastFollowStatus;


    /**
     * 最后跟进时间
     */
    @Excel(name = "最后跟进时间")
    @ApiModelProperty(value = "最后跟进时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(typeHandler = TimestampTypeHandler.class)
    private LocalDateTime lastFollowTime;


    /**
     * 跟进次数
     */
    @Excel(name = "跟进次数")
    @ApiModelProperty(value = "跟进次数")
    private Integer followCount;


    /**
     * 企业ID
     */
    @TableField(fill = FieldFill.INSERT)
    @Excel(name = "企业ID")
    @ApiModelProperty(value = "企业ID")
    private Integer cpId;





    private static final long serialVersionUID = 1L;

}
