package org.jeecg.modules.performance.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;

/**
 * 销售绩效详细信息
 *
 * @author jeecg-boot
 * @version V1.0
 * @date 2020-04-01
 */
@Data
@TableName("ctop_sale_performance_detail")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ctop_sale_performance_detail对象", description = "销售绩效详细信息")
public class SalePerformanceDetail {

    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 销售人员id
     */
    @Excel(name = "销售人员id", width = 15)
    @ApiModelProperty(value = "销售人员id")
    private String saleId;
    /**
     * 角色id
     */
    @Excel(name = "角色id", width = 15)
    @ApiModelProperty(value = "角色id")
    private String roleId;
    /**
     * 媒体类型
     */
    @Excel(name = "媒体类型", width = 15)
    @ApiModelProperty(value = "媒体类型")
    private String mediaType;
    /**
     * 广告主id
     */
    @Excel(name = "广告主id", width = 15)
    @ApiModelProperty(value = "广告主id")
    private String advertiserId;

    @Excel(name = "户id", width = 15)
    @ApiModelProperty(value = "户id")
    private Long accountId;
    /**
     * 年
     */
    @Excel(name = "年", width = 15)
    @ApiModelProperty(value = "年")
    private Integer year;
    /**
     * 季度
     */
    @Excel(name = "季度", width = 15)
    @ApiModelProperty(value = "季度")
    private Integer quarter;
    /**
     * 开始时间
     */
    @Excel(name = "开始时间", width = 15)
    @ApiModelProperty(value = "开始时间")
    private String startDate;
    /**
     * 结束时间
     */
    @Excel(name = "结束时间", width = 15)
    @ApiModelProperty(value = "结束时间")
    private String endDate;
    /**
     * 总消耗
     */
    @Excel(name = "总消耗", width = 15)
    @ApiModelProperty(value = "总消耗")
    private java.math.BigDecimal totalCost;
    /**
     * 媒体任务
     */
    @Excel(name = "媒体任务", width = 15)
    @ApiModelProperty(value = "媒体任务")
    private java.math.BigDecimal mediaTask;
    /**
     * 媒体任务完成情况
     */
    @Excel(name = "媒体任务完成情况", width = 15)
    @ApiModelProperty(value = "媒体任务完成情况")
    private java.math.BigDecimal doMediaTask;
    /**
     * 个人任务
     */
    @Excel(name = "个人任务", width = 15)
    @ApiModelProperty(value = "个人任务")
    private java.math.BigDecimal personnalTask;
    /**
     * 个人任务完成情况
     */
    @Excel(name = "个人任务完成情况", width = 15)
    @ApiModelProperty(value = "个人任务完成情况")
    private java.math.BigDecimal doPersonalTask;
    /**
     * 是否自拓客户
     */
    @Excel(name = "是否自拓客户", width = 15)
    @ApiModelProperty(value = "是否自拓客户")
    private Integer extensionSelf;
    /**
     * 是否新客
     */
    @Excel(name = "是否新客", width = 15)
    @ApiModelProperty(value = "是否新客")
    private Integer brandNew;
    /**
     * 提成百分比
     */
    @Excel(name = "提成百分比", width = 15)
    @ApiModelProperty(value = "提成百分比")
    private java.math.BigDecimal percent;
    /**
     * 提成金额
     */
    @Excel(name = "提成金额", width = 15)
    @ApiModelProperty(value = "提成金额")
    private java.math.BigDecimal percentage;
    /**
     * createTime
     */
    @ApiModelProperty(value = "createTime")
    private Date createTime;
    /**
     * updateTime
     */
    @ApiModelProperty(value = "updateTime")
    private Date updateTime;

    @Override
    public String toString() {
        return "SalePerformanceDetail{" +
                "id=" + id +
                ", saleId='" + saleId + '\'' +
                ", roleId='" + roleId + '\'' +
                ", mediaType='" + mediaType + '\'' +
                ", advertiserId='" + advertiserId + '\'' +
                ", year=" + year +
                ", quarter=" + quarter +
                ", startDate='" + startDate + '\'' +
                ", endDate='" + endDate + '\'' +
                ", totalCost=" + totalCost +
                ", mediaTask=" + mediaTask +
                ", doMediaTask=" + doMediaTask +
                ", personnalTask=" + personnalTask +
                ", doPersonalTask=" + doPersonalTask +
                ", extensionSelf=" + extensionSelf +
                ", brandNew=" + brandNew +
                ", percent=" + percent +
                ", percentage=" + percentage +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }


    public SalePerformanceDetail() {
        this.createTime = new Date();
        this.updateTime = new Date();
    }
}
