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

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

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

/***
  * @Description: 客户状态分析DTO
  * @Param:
  * @return:
  * @Author: YPZ
  * @Date: `2024/12/27` 17:13
  */
@Data
public class CustomerStatusAnalysisDTO extends QueryBaseEntity {

    @ApiModelProperty(value = "部门ids")
    private List<Long> deptIds;

    @ApiModelProperty(value = "部门id")
    private Long deptId;

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

    @ApiModelProperty(value = "客户状态List")
    private List<String> statusList;

    @ApiModelProperty(value = "客户来源List")
    private List<String> sourceList;

    @ApiModelProperty(value = "客户等级List")
    private List<String> levelList;


    @ApiModelProperty(value = "开始结束时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JSONField(format ="yyyy-MM-dd")
    private LocalDate beginTime;

    @ApiModelProperty(value = "开始结束时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JSONField(format ="yyyy-MM-dd")
    private  LocalDate endTime;
}
