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

import com.fasterxml.jackson.annotation.JsonFormat;
import com.storlead.framework.mybatis.query.QueryBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "CustomerFollowUpSearchDTO", description = "客户跟进记录查询DTO")
public class CustomerFollowUpSearchDTO extends QueryBaseEntity {


    @ApiModelProperty(value = "关联客户id")
    private Long customerId;

    @ApiModelProperty(value = "归属人员")
    private Long ownerBy;

    @ApiModelProperty(value = "关联邮件id")
    private Long mailId;

    @ApiModelProperty(value = "客户跟进种类value（对应字典客户跟进种类value）")
    private String followUpTypeValue;

    @ApiModelProperty(value = "跟进人员id")
    private Long followUpMemberId;

    @ApiModelProperty(value = "业务类型10:客户(包含线索)、20:联系人、30:商机、40:订单")
    private String resourceType;

    @ApiModelProperty(value = "业务类型关联ID")
    private Long resourceTypeId;

//    @ApiModelProperty(value = "业务名称")
//    private String resourceName;
//
    @ApiModelProperty(value = "业务阶段名称")
    private String resourceStageName;

    @ApiModelProperty(value = "业务阶段")
    private String resourceStageDictValue;


    @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 = "跟进开始时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime followUpStartDate;

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

    @ApiModelProperty(value = "归属人ids")
    private List<Long> ownerByIds;

    @ApiModelProperty(value = "跟进主题")
    private String subject;

    @ApiModelProperty(value = "跟进目的value(对应字典跟进目的value)")
    private String objectiveValue;

    @ApiModelProperty(value = "收件为进，发件为出，不可调整（出入类型）（1进2出）")
    private Integer inOutMark;


}
