package com.storlead.es.pojo.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @program: sp-sales-platform
 * @description:
 * @author: chenkq
 * @create: 2025-04-16 10:16
 */
@Data
public class EsQuerySimilarityVO {
    @ApiModelProperty(value = "业务Id")
    private Long id;
    @ApiModelProperty(value = "业务Id")
    private Long customerId;
    @ApiModelProperty(value = "客户名称")
    private String customerName;
    @ApiModelProperty(value = "联系人姓名")
    private String name;
    @ApiModelProperty(value = "错误提示")
    private String errorMsg;
    @ApiModelProperty(value = "原有对象")
    private Object object;

    @ApiModelProperty(value = "被查重复字段")
    private String duplicateFieldNow;
    @ApiModelProperty(value = "被查重复值")
    private String duplicateValueNow;

    @ApiModelProperty(value = "重复字段")
    private String duplicateField;
    @ApiModelProperty(value = "重复值")
    private String duplicateValue;
    @ApiModelProperty(value = "相似度")
    private String similarityScore;
    @ApiModelProperty(value = "所属索引")
    private String indexName;
    @ApiModelProperty(value = "匹配的字段名")
    private String matchedField;
    @ApiModelProperty(value = "错误类型")
    private String resourceType;
    @ApiModelProperty(value = "最后跟进时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastFollowUpTime;

    @ApiModelProperty(value = "未跟进天数")
    private Integer noFollowUpDate;
    private Long ownerBy;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
