package cn.iocoder.yudao.module.visit.controller.admin.customerinfo.vo;

import cn.iocoder.yudao.module.visit.controller.admin.product.vo.ProductSimpleReqVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 客户信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class CustomerInfoRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "客户姓名", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("客户姓名")
    private String customerName;

    @Schema(description = "联系方式（客户手机号）", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("联系方式（客户手机号）")
    private String contact;

    @Schema(description = "公司名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("公司名称")
    private String companyName;

    @Schema(description = "性质等级", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "性质等级", converter = DictConvert.class)
    @DictFormat("customer_type") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private Integer customerType;

    //省名称
    @Schema(description = "省名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String provinceName;
    //市名称
    @Schema(description = "市名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String cityName;
    //区名称
    @Schema(description = "区名称", requiredMode = Schema.RequiredMode.REQUIRED)
    private String areaName;

    @Schema(description = "所在地区", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("所在地区")
    private String regionFullName;

    @Schema(description = "详细地址", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("详细地址")
    private String locationText;

    @Schema(description = "经度", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal longitude;

    @Schema(description = "纬度", requiredMode = Schema.RequiredMode.REQUIRED)
    private BigDecimal latitude;

    @Schema(description = "产品ID", requiredMode = Schema.RequiredMode.REQUIRED)
    private String productIds;

    @Schema(description = "产品名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("产品名称")
    private String productNames;

    @Schema(description = "客户所属部门", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty(value = "客户所属部门", converter = DictConvert.class)
    @DictFormat("customer_dept")
    private String department;

    @Schema(description = "静态图", requiredMode = Schema.RequiredMode.REQUIRED)
    private String locationImage;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

    @Schema(description = "产品信息List对象")
    private List<ProductSimpleReqVO>  productList;

    @Schema(description = "业务经理")
    @ExcelProperty("业务经理")
    private String creator;

}