package com.aucma.production.domain;

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

import java.util.Date;

/**
 * 安灯事件操作日志（审计与追踪）对象 andon_event_log
 *
 * @author Yinq
 * @date 2025-10-28
 */
public class AndonEventLog extends BaseEntity
        {
private static final long serialVersionUID=1L;

    /** 主键ID */
    private Long logId;

    /** 事件ID */
            @Excel(name = "事件ID")
    private Long eventId;

    /** 操作类型（创建/确认/分配/升级/解决/取消/评论） */
            @Excel(name = "操作类型", readConverterExp = "=创建/确认/分配/升级/解决/取消/评论")
    private String operation;

    /** 操作内容 */
            @Excel(name = "操作内容")
    private String content;

    /** 操作人ID */
            @Excel(name = "操作人ID")
    private Long operatorUserId;

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

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

    public void setLogId(Long logId)
            {
            this.logId = logId;
            }

    public Long getLogId()
            {
            return logId;
            }
    public void setEventId(Long eventId)
            {
            this.eventId = eventId;
            }

    public Long getEventId()
            {
            return eventId;
            }
    public void setOperation(String operation)
            {
            this.operation = operation;
            }

    public String getOperation()
            {
            return operation;
            }
    public void setContent(String content)
            {
            this.content = content;
            }

    public String getContent()
            {
            return content;
            }
    public void setOperatorUserId(Long operatorUserId)
            {
            this.operatorUserId = operatorUserId;
            }

    public Long getOperatorUserId()
            {
            return operatorUserId;
            }
    public void setOperatorUserName(String operatorUserName)
            {
            this.operatorUserName = operatorUserName;
            }

    public String getOperatorUserName()
            {
            return operatorUserName;
            }
    public void setOperationTime(Date operationTime)
            {
            this.operationTime = operationTime;
            }

    public Date getOperationTime()
            {
            return operationTime;
            }

@Override
public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("logId",getLogId())
            .append("eventId",getEventId())
            .append("operation",getOperation())
            .append("content",getContent())
            .append("operatorUserId",getOperatorUserId())
            .append("operatorUserName",getOperatorUserName())
            .append("operationTime",getOperationTime())
            .append("remark",getRemark())
            .append("createBy",getCreateBy())
            .append("createTime",getCreateTime())
            .append("updateBy",getUpdateBy())
            .append("updateTime",getUpdateTime())
        .toString();
        }
        }
