package com.gxwebsoft.oa.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 文章记录表查询参数
 *
 * @author WebSoft
 * @since 2022-11-16 11:21:42
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "TaskParam对象", description = "文章记录表查询参数")
public class TaskParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "任务ID")
    @QueryField(type = QueryType.EQ)
    private Integer taskId;

    @ApiModelProperty(value = "任务名称")
    private String name;

    @ApiModelProperty(value = "任务类型")
    private String taskType;

    @ApiModelProperty(value = "关联应用")
    private Integer appId;

    @ApiModelProperty(value = "客户ID")
    @QueryField(type = QueryType.EQ)
    private Integer customerId;

    @ApiModelProperty(value = "项目ID")
    @QueryField(type = QueryType.EQ)
    private Integer projectId;

    @ApiModelProperty(value = "资产ID")
    @QueryField(type = QueryType.EQ)
    private Integer assetsId;

    @ApiModelProperty(value = "是否已查阅")
    private Integer isRead;

    @ApiModelProperty(value = "最后回复人ID")
    private Integer lastReadUser;

    @ApiModelProperty(value = "最后回复人头像")
    @TableField(exist = false)
    private String lastAvatar;

    @ApiModelProperty(value = "最后回复人昵称")
    @TableField(exist = false)
    private String lastNickname;

    @ApiModelProperty(value = "最后回复人姓名")
    @TableField(exist = false)
    private String lastRealName;

    @ApiModelProperty(value = "最后回复人公司名称")
    @TableField(exist = false)
    private String lastCompanyName;

    @ApiModelProperty(value = "开始时间")
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    private String endTime;

    @ApiModelProperty(value = "任务内容")
    private String content;

    @ApiModelProperty(value = "任务发起人")
    @QueryField(type = QueryType.EQ)
    private Integer promoter;

    @ApiModelProperty(value = "负责人")
    private Integer commander;

    @ApiModelProperty(value = "任务状态")
    private String progress;

    @ApiModelProperty(value = "优先级")
    private String priority;

    @ApiModelProperty(value = "品质要求")
    private String quality;

    @ApiModelProperty(value = "时限(天)")
    @QueryField(type = QueryType.EQ)
    private Integer day;

    @ApiModelProperty(value = "用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @ApiModelProperty(value = "机构id")
    @QueryField(type = QueryType.EQ)
    private Integer organizationId;

    @ApiModelProperty(value = "所属门店ID")
    @QueryField(type = QueryType.EQ)
    private Integer shopId;

    @ApiModelProperty(value = "排序(数字越小越靠前)")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "状态, 0正常, 1冻结")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @ApiModelProperty(value = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

    @ApiModelProperty(value = "用户昵称")
    @QueryField(type = QueryType.EQ)
    private String nickname;

    @ApiModelProperty(value = "用户头像")
    @QueryField(type = QueryType.EQ)
    private String avatar;

    @ApiModelProperty(value = "应用名称")
    @TableField(exist = false)
    private String appName;

    @ApiModelProperty(value = "关键词搜索")
    @TableField(exist = false)
    private String keywords;

}
