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

import lombok.*;

import java.time.LocalDate;

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 InfoPageReqVO extends PageParam {

    @Schema(description = "客户姓名")
    private String customerName;

    @Schema(description = "联系方式")
    private String contact;

    @Schema(description = "客户公司名称")
    private String companyName;

    @Schema(description = "所在地区")
    private String regionFullName;

    @Schema(description = "拜访日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] visitDate;

    @Schema(description = "性质等级", example = "1")
    private Integer customerStatus;

    @Schema(description = "拜访品种（多选，逗号分隔）")
    private String visitProductIds;

    @Schema(description = "拜访品种名称（多选，逗号分隔）")
    private String visitProductNames;

    @Schema(description = "拜访方式（字典）")
    private Integer visitMethod;

    @Schema(description = "拜访类型（字典）", example = "2")
    private Integer visitType;

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

}