package cn.iocoder.yudao.module.customer.controller.admin.businessopportunity.vo;

import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 客户商机分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class CustomerBusinessOpportunityPageReqVO extends PageParam {

    @Schema(description = "商机uuid", example = "28138")
    private String opportunityId;

    @Schema(description = "商机编码")
    private String opportunityCode;

    @Schema(description = "客户id", example = "2835")
    private Long customerId;

    @Schema(description = "商机名称", example = "王五")
    private String opportunityName;

    @Schema(description = "项目类型", example = "1")
    private String projectType;

    @Schema(description = "创建人员工id", example = "28498")
    private Long creatorEmployeeId;

    @Schema(description = "创建人员工姓名", example = "张三")
    private String creatorEmployeeName;

    @Schema(description = "部门id", example = "8267")
    private Long deptId;

    @Schema(description = "赢单机率")
    private String winRate;

    @Schema(description = "预计合同金额")
    private BigDecimal estimatedContractAmount;

    @Schema(description = "预计项目毛利")
    private String estimatedProjectMargin;

    @Schema(description = "预计项目成功率")
    private String estimatedSuccessRate;

    @Schema(description = "预计进单时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] estimatedDealTime;

    @Schema(description = "商机等级：1-潜在，2-可能，3-重点跟进")
    private String opportunityLevel;

    @Schema(description = "备注")
    private String remarks;

    @Schema(description = "状态", example = "2")
    private Integer status;

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}