package com.storlead.sales.pojo.vo.customer;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.storlead.framework.mybatis.entity.SysBaseField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @program: sp-sales-platform
 * @description:
 * @author: chenkq
 * @create: 2024-07-03 12:04
 */
@Data
public class BusinessMessageVO extends SysBaseField {

    /**
     * 商机标题、创建时间、创建人员、归属人员、关联客户、主联系人、预计销售金额、预计签单日期、销售阶段、商机类型、成交几率、商机来源、获取日期，操作人、操作时间、创建人员、创建时间
     * 、跟进时间、跟进内容、紧要程度、变更时间、变更字段、变更字段值、变更字段原值、评论时间、评论内容、删除时间、删除人
     *
     */

    private Long id;

    @ApiModelProperty(value = "商机标题")
    private String title;

    @ApiModelProperty(value = "创建人员")
    private String createByName;

    @ApiModelProperty(value = "归属人员")
    private String ownerByName;

    @ApiModelProperty(value = "关联客户")
    private String customerName;

    @ApiModelProperty(value = "主联系人")
    private String liaisonName;

    @ApiModelProperty(value = "预计销售金额")
    private String estimatedSalesAmount;

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

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

    @ApiModelProperty(value = "商机类型")
    private String businessTypeName;

    @ApiModelProperty(value = "成交几率")
    private String stransactionProbabilityName;

    @ApiModelProperty(value = "商机来源")
    private String sourcesOfBusinessName;

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

    @ApiModelProperty(value = "操作人")
    private String operateByName;

    @ApiModelProperty(value = "操作时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime operateTime;

    @ApiModelProperty(value = "跟进时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime followUpTime;

    @ApiModelProperty(value = "跟进内容")
    private String followUpContent;

    @ApiModelProperty(value = "紧要程度")
    private String urgentLevelName;

    @ApiModelProperty(value = "变更时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime changeTime;

    @ApiModelProperty(value = "变更字段")
    private String changeField;

    @ApiModelProperty(value = "变更字段值")
    private String changeFieldValue;

    @ApiModelProperty(value = "变更字段原值")
    private String changeFieldOriginalValue;

    @ApiModelProperty(value = "评论时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime commentTime;

    @ApiModelProperty(value = "评论内容")
    private String commentContent;

    @ApiModelProperty(value = "删除时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime deleteTime;

    @ApiModelProperty(value = "删除人")
    private String deleteByName;

    @ApiModelProperty(value = "商机状态")
    private String businessStatusName;


}
