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 com.gxwebsoft.common.system.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 任务记录表查询参数
 *
 * @author 科技小王子
 * @since 2023-10-23 18:53:01
 */
@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 String content;

    @ApiModelProperty(value = "工单附件")
    private String files;

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

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

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

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

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

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

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

    @ApiModelProperty(value = "手机号")
    private String phone;

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

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

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

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

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

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

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

    @ApiModelProperty(value = "企业ID")
    @QueryField(type = QueryType.EQ)
    private Integer companyId;

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

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

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

    @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 = "当前登录用户")
    private User loginUser;

    @ApiModelProperty(value = "当前登录用户Id")
    private Integer loginUserId;

}
