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

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.storlead.framework.mybatis.query.QueryBaseEntity;
import com.storlead.framework.annotate.AnnotateEnumType;
import com.storlead.framework.annotate.Dict;
import com.storlead.framework.annotate.OrgAutoMateAnnotate;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * @program: sp-sales-platform
 * @description:
 * @author: chenkq
 * @create: 2024-05-14 18:22
 */
@Data
public class TaskQueryDTO  extends QueryBaseEntity {

//    @ApiModelProperty(value = "关联业务")
//    private String linkWorkGroup;
//
//    @ApiModelProperty(value = "关联业务数据")
//    private Long linkWorkDataId;

    @ApiModelProperty(value = "业务数据类型")
    private String resourceType;

    @ApiModelProperty(value = "ID")
    private Long resourceTypeId;

    @ApiModelProperty(value = "跟进人")
    private Long ownerBy;

    @ApiModelProperty(value = "跟进人")
    private List<Long> ownerByIdls;

    @ApiModelProperty(value = "发起人")
    private List<Long> createByIdls;

    @ApiModelProperty(value = "状态:0 :未开始,1:已完成,2:已取消 3:已超时,4:未完成")
    private Integer taskStatus;

    @ApiModelProperty(value = "状态:0 :未开始,1:已完成,2:已取消 3:已超时,4:未完成")
    private List<Integer> taskStatusList;

    @ApiModelProperty(value = "不包含的状态:0 :未开始,1:已完成,2:已取消 3:已超时,4:未完成")
    private Integer neTaskStatus;

    @ApiModelProperty(value = "抄送人List")
    private List<Long> cooperateByList;

    @ApiModelProperty(value = "紧急程度：1：重要，2：紧急 3：重要不紧急,4:重要且紧急")
    private Integer priorityGrade;

    @ApiModelProperty(value = "创建人")
    private Long createBy;

    @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")
    @ApiModelProperty(value = "开始时间")
    private LocalDateTime beginTime;

    @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")
    @ApiModelProperty(value = "开始j时间")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "跟进目的value(对应字典跟进目的value)")
    private String objectiveValue;
    @ApiModelProperty(value = "任务内容")
    private String taskContent;

    @ApiModelProperty(value = "年月")
    private String yearMonth;

    @ApiModelProperty(value = "开始结束时间")
    private  String beginCycleTime;

    @ApiModelProperty(value = "开始结束时间")
    private  String endCycleTime;

    @ApiModelProperty(value = "是不是仅自己")
    private Integer isMySelf;

    @ApiModelProperty(value = "待办任务")
    private Integer waitingTask;
}
