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_report_comment
 *
 * @author ruoyi
 * @date 2025-10-21
 */
public class ReportComment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 批注ID */
    private Long id;

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

    /** 报告类型（0日报 1周报） */
    @Excel(name = "报告类型", readConverterExp = "0=日报,1=周报")
    private String reportType;

    /** 批注内容 */
    @Excel(name = "批注内容")
    private String commentContent;

    /** 批注人ID */
    @Excel(name = "批注人ID")
    private Long commentBy;

    /** 批注人姓名 */
    @Excel(name = "批注人姓名")
    private String commentByName;

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

    /** 父批注ID（用于回复） */
    @Excel(name = "父批注ID")
    private Long parentId;

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

    public Long getId()
    {
        return id;
    }

    public void setReportId(Long reportId)
    {
        this.reportId = reportId;
    }

    public Long getReportId()
    {
        return reportId;
    }

    public void setReportType(String reportType)
    {
        this.reportType = reportType;
    }

    public String getReportType()
    {
        return reportType;
    }

    public void setCommentContent(String commentContent)
    {
        this.commentContent = commentContent;
    }

    public String getCommentContent()
    {
        return commentContent;
    }

    public void setCommentBy(Long commentBy)
    {
        this.commentBy = commentBy;
    }

    public Long getCommentBy()
    {
        return commentBy;
    }

    public void setCommentByName(String commentByName)
    {
        this.commentByName = commentByName;
    }

    public String getCommentByName()
    {
        return commentByName;
    }

    public void setCommentTime(Date commentTime)
    {
        this.commentTime = commentTime;
    }

    public Date getCommentTime()
    {
        return commentTime;
    }

    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("reportId", getReportId())
            .append("reportType", getReportType())
            .append("commentContent", getCommentContent())
            .append("commentBy", getCommentBy())
            .append("commentByName", getCommentByName())
            .append("commentTime", getCommentTime())
            .append("parentId", getParentId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
