package com.gxwebsoft.oa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
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)
@Schema(name = "OaTask对象", description = "任务记录表")
public class OaTask implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "工单ID")
    @TableId(value = "task_id", type = IdType.AUTO)
    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 = "工单发起人")
    private Integer promoter;

    @Schema(description = "受理人")
    private Integer commander;

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

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

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

    @Schema(description = "时限(天)")
    private Integer day;

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

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

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

    @Schema(description = "逾期天数")
    private Integer overdueDays;

    @Schema(description = "项目ID")
    private Integer appId;

    @Schema(description = "机构id")
    private Integer organizationId;

    @Schema(description = "项目ID")
    private Integer projectId;

    @Schema(description = "客户ID")
    private Integer customerId;

    @Schema(description = "资产ID")
    private Integer assetsId;

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "是否已查阅")
    private Integer isRead;

    @Schema(description = "最后回复人")
    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已结算)")
    private Integer isSettled;

    @Schema(description = "排序(数字越小越靠前)")
    private Integer sortNumber;

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

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

    @Schema(description = "是否删除, 0否, 1是")
    @TableLogic
    private Integer deleted;

    @Schema(description = "租户id")
    private Integer tenantId;

    @Schema(description = "创建时间")
    private Date createTime;

    @Schema(description = "修改时间")
    private Date updateTime;

}
