package com.gxwebsoft.oa.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * 任务记录表
 *
 * @author 科技小王子
 * @since 2023-10-23 18:53:01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "Task对象", description = "任务记录表")
@TableName("oa_task")
public class Task implements Serializable {
    private static final long serialVersionUID = 1L;

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

    @ApiModelProperty(value = "受理人")
    private Integer commander;

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

    @ApiModelProperty(value = "逾期天数")
    private Integer overdueDays;

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

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

    @ApiModelProperty(value = "时限(天)")
    private Integer day;

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

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

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

    @ApiModelProperty(value = "项目ID")
    private Integer appId;

    @ApiModelProperty(value = "机构id")
    private Integer organizationId;

    @ApiModelProperty(value = "项目ID")
    private Integer projectId;

    @ApiModelProperty(value = "客户ID")
    private Integer customerId;

    @ApiModelProperty(value = "资产ID")
    private Integer assetsId;

    @ApiModelProperty(value = "用户ID")
    private Integer userId;

    @ApiModelProperty(value = "用户昵称")
    private String nickname;

    @ApiModelProperty(value = "用户头像")
    private String avatar;

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

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

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

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

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

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

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

    @ApiModelProperty(value = "结算状态")
    private Integer isSettled;

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

    @ApiModelProperty(value = "租户id")
    private Integer tenantId;

    @ApiModelProperty(value = "注册时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "项目信息")
    @TableField(exist = false)
    private String appName;

    @ApiModelProperty(value = "角色ID")
    @TableField(exist = false)
    private Integer roleId;

    @ApiModelProperty(value = "角色标识")
    @TableField(exist = false)
    private String roleCode;

    @ApiModelProperty(value = "操作类型")
    @TableField(exist = false)
    private String action;

    @ApiModelProperty(value = "当前登录用户ID")
    @TableField(exist = false)
    private Integer loginUserId;

    @ApiModelProperty(value = "机密信息")
    @TableField(exist = false)
    private String confidential;

}
