package com.ygtx.worklog.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ygtx.common.annotation.Excel;
import com.ygtx.common.core.domain.BaseEntity;

/**
 * 协作任务对象 wl_collaborate_task
 *
 * @author ruoyi
 * @date 2025-10-21
 */
public class CollaborateTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 协作任务ID */
    private Long id;

    /** 源日报ID */
    @Excel(name = "源日报ID")
    private Long sourceReportId;

    /** 源用户ID（发起协作的人） */
    @Excel(name = "源用户ID")
    private Long sourceUserId;

    /** 源用户姓名 */
    @Excel(name = "源用户姓名")
    private String sourceUserName;

    /** 协作人ID */
    @Excel(name = "协作人ID")
    private Long collaboratorId;

    /** 协作人姓名 */
    @Excel(name = "协作人姓名")
    private String collaboratorName;

    /** 协作任务内容 */
    @Excel(name = "协作任务内容")
    private String taskContent;

    /** 任务日期（明日计划的日期） */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "任务日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date taskDate;

    /** 状态（0待处理 1已添加到日报 2已拒绝） */
    @Excel(name = "状态", readConverterExp = "0=待处理,1=已添加到日报,2=已拒绝")
    private String status;

    /** 目标日报ID（协作人的日报） */
    @Excel(name = "目标日报ID")
    private Long targetReportId;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date processTime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setSourceReportId(Long sourceReportId)
    {
        this.sourceReportId = sourceReportId;
    }

    public Long getSourceReportId()
    {
        return sourceReportId;
    }

    public void setSourceUserId(Long sourceUserId)
    {
        this.sourceUserId = sourceUserId;
    }

    public Long getSourceUserId()
    {
        return sourceUserId;
    }

    public void setSourceUserName(String sourceUserName)
    {
        this.sourceUserName = sourceUserName;
    }

    public String getSourceUserName()
    {
        return sourceUserName;
    }

    public void setCollaboratorId(Long collaboratorId)
    {
        this.collaboratorId = collaboratorId;
    }

    public Long getCollaboratorId()
    {
        return collaboratorId;
    }

    public void setCollaboratorName(String collaboratorName)
    {
        this.collaboratorName = collaboratorName;
    }

    public String getCollaboratorName()
    {
        return collaboratorName;
    }

    public void setTaskContent(String taskContent)
    {
        this.taskContent = taskContent;
    }

    public String getTaskContent()
    {
        return taskContent;
    }

    public void setTaskDate(Date taskDate)
    {
        this.taskDate = taskDate;
    }

    public Date getTaskDate()
    {
        return taskDate;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setTargetReportId(Long targetReportId)
    {
        this.targetReportId = targetReportId;
    }

    public Long getTargetReportId()
    {
        return targetReportId;
    }

    public void setProcessTime(Date processTime)
    {
        this.processTime = processTime;
    }

    public Date getProcessTime()
    {
        return processTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sourceReportId", getSourceReportId())
            .append("sourceUserId", getSourceUserId())
            .append("sourceUserName", getSourceUserName())
            .append("collaboratorId", getCollaboratorId())
            .append("collaboratorName", getCollaboratorName())
            .append("taskContent", getTaskContent())
            .append("taskDate", getTaskDate())
            .append("status", getStatus())
            .append("targetReportId", getTargetReportId())
            .append("createTime", getCreateTime())
            .append("processTime", getProcessTime())
            .toString();
    }
}
