package com.gxwebsoft.oa.param;

import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 任务记录表查询参数
 *
 * @author 科技小王子
 * @since 2024-09-10 20:57:42
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "OaTaskParam对象", description = "任务记录表查询参数")
public class OaTaskParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "工单ID")
    @QueryField(type = QueryType.EQ)
    private Integer taskId;

    @Schema(description = "工单类型")
    private String taskType;

    @Schema(description = "任务内容")
    private String name;

    @Schema(description = "问题描述")
    private String content;

    @Schema(description = "工单附件")
    private String files;

    @Schema(description = "工单发起人")
    @QueryField(type = QueryType.EQ)
    private Integer promoter;

    @Schema(description = "受理人")
    @QueryField(type = QueryType.EQ)
    private Integer commander;

    @Schema(description = "工单状态， 0未开始 1已指派 ")
    @QueryField(type = QueryType.EQ)
    private Integer progress;

    @Schema(description = "优先级")
    private String priority;

    @Schema(description = "品质要求")
    private String quality;

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

    @Schema(description = "手机号")
    private String phone;

    @Schema(description = "开始时间")
    private String startTime;

    @Schema(description = "结束时间")
    private String endTime;

    @Schema(description = "逾期天数")
    @QueryField(type = QueryType.EQ)
    private Integer overdueDays;

    @Schema(description = "项目ID")
    @QueryField(type = QueryType.EQ)
    private Integer appId;

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

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

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

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

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

    @Schema(description = "是否已查阅")
    @QueryField(type = QueryType.EQ)
    private Integer isRead;

    @Schema(description = "最后回复人")
    @QueryField(type = QueryType.EQ)
    private Integer lastReadUser;

    @Schema(description = "发起人昵称")
    private String nickname;

    @Schema(description = "发起人头像")
    private String avatar;

    @Schema(description = "最后回复人头像")
    private String lastAvatar;

    @Schema(description = "最后回复人昵称")
    private String lastNickname;

    @Schema(description = "订单是否已结算(0未结算 1已结算)")
    @QueryField(type = QueryType.EQ)
    private Integer isSettled;

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

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "状态, 0待处理, 1已完成")
    @QueryField(type = QueryType.EQ)
    private Integer status;

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

}
