package cn.com.ctop.common.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 com.fasterxml.jackson.annotation.JsonFormat;
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 org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 项目
 *
 * @author jeecg-boot
 * @version V1.0
 * @date 2019-11-19
 */
@Data
@TableName("ctop_project")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ctop_project对象", description = "项目")
public class Project {
    /**
     * id
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;
    /**
     * 项目名称
     */
    @Excel(name = "项目名称", width = 15)
    @ApiModelProperty(value = "项目名称")
    private String projectName;
    /**
     * 广告主id
     */
    @Excel(name = "广告主id", width = 15)
    @ApiModelProperty(value = "广告主id")
    private String advertiserId;


    @Excel(name = "产品id", width = 15)
    @ApiModelProperty(value = "广告主id")
    private Long productId;

    /**
     * 创建人
     */
    @Excel(name = "创建人", width = 15)
    @ApiModelProperty(value = "创建人")
    private String userId;
    /**
     * 负责人id
     */
    @Excel(name = "负责人id", width = 15)
    @ApiModelProperty(value = "负责人id")
    private String responsibleId;


    @Excel(name = "设计负责人", width = 15)
    @ApiModelProperty(value = "设计负责人")
    private String designResponsibleId;


    @Excel(name = "公司id", width = 15)
    @ApiModelProperty(value = "公司id")
    private String companyId;
    /**
     * 媒体类型
     */
    @Excel(name = "媒体类型", width = 15)
    @ApiModelProperty(value = "媒体类型")
    private String mediaId;

    /**
     * 最高出价
     */
    private Long maxBid;

    private String supplierCode;


    // 销售
    private String saleId;
    /**
     * 最高深度转化出价
     */
    private BigDecimal maxDeepCpaBid;
    private Integer checkLink;
    private Integer materialShare;
    /**
     * 创建时间
     */
    @Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 修改时间
     */
    @Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;


    private String bidType;
    private String ocpxActionType;

    @TableField(exist = false)
    private String responsibleId_dictText; // 运营负责人

    @TableField(exist = false)
    private String saleId_dictText; // 销售

    @TableField(exist = false)
    private String designResponsibleId_dictText; // 设计负责人
    @TableField(exist = false)
    private String advertiserId_dictText; // 广告主名称
    @TableField(exist = false)
    private String productId_dictText; // 产品名称
    @TableField(exist = false)
    private Integer needExamine;
    @TableField(exist = false)
    private String supplierCode_dictText;
}
