package com.storlead.sales.pojo.dto.excel;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.storlead.sales.pojo.entity.task.TaskEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/** 商机
 * @program: sp-sales-platform
 * @description:
 * @author: chenkq
 * @create: 2024-06-27 17:15
 */
@Data
public class BusinessExcelVerifyEntity extends ExcelVerifyEntityOfMode {

    @Excel(name = "商机标题")
    private String title;

    @Excel(name = "关联客户")
    private String customerName;

    @Excel(name = "主要联系人")
    private String liaisonName;

    @Excel(name = "预计销售金额")
    private BigDecimal estimatedSalesAmount;

    @ApiModelProperty(value = "")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JSONField(format ="yyyy-MM-dd")
    @Excel(name = "预计签单日期")
    private LocalDate expectedSigningDate;

    @Excel(name = "商机阶段")
    private String stage;

    @Excel(name = "销售阶段")
    private String salesPhaseName;

    @Excel(name = "商机类型")
    private String businessTypeName;

    @Excel(name = "成交机率")
    private String transactionProbabilityName;

    @Excel(name = "商机来源")
    private String sourcesOfBusinessName;

    @Excel(name = "备注信息")
    private String remark;

    @Excel(name = "归属人员")
    private String ownerByName;


    @ApiModelProperty(value = "销售阶段id")
    private String salesPhaseDictValue;

    @ApiModelProperty(value = "商机类型value（对应字典商机类型value）")
    private String businessTypeDictValue;

    @ApiModelProperty(value = "成交机率value（对应字典成交机率value）")
    private String transactionProbabilityDictValue;

    @ApiModelProperty(value = "商机来源value（对应字典商机来源value）")
    private String sourcesOfBusinessDictValue;

    @ApiModelProperty(value = "获取日期")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JSONField(format ="yyyy-MM-dd")
    private LocalDate getedDate;

    @ApiModelProperty(value = "归属人员")
    private Long ownerBy;

    @ApiModelProperty(value = "协作人员id,逗号分割")
    private String collaborator;

    @ApiModelProperty(value = "协作人员idList")
    private List<Long> collaboratorList;

    @ApiModelProperty(value = "关联任务")
    private TaskEntity task;

    @ApiModelProperty(value = "附件idList")
    private List<Long> resourceIdList;
}
