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

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
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 = "SendRecordSearchDTO", description = "客户寄样记录查询DTO")
public class SendRecordSearchDTO extends QueryBaseEntity {

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


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

    @ApiModelProperty(value = "寄样产品")
    private String sendProduct;

    @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 sendRecordBeginTime;

    @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 sendRecordEndTime;

    @ApiModelProperty(value = "关联业务10:客户、11线索、20:联系人、30:商机、40:订单、50:回款、60:退款、70:费用、80:任务、90:跟进、100:工单")
    private String resourceType;

    @ApiModelProperty(value = "关联业务数据")
    private String resourceTypeId;

    private Long sendMemberId;

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


}
