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_assignment
 *
 * @author Yinq
 * @date 2025-10-28
 */
public class AndonEventAssignment extends BaseEntity
        {
private static final long serialVersionUID=1L;

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

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

    /** 被分配用户ID */
            @Excel(name = "被分配用户ID")
    private Long assigneeUserId;

    /** 被分配用户姓名 */
            @Excel(name = "被分配用户姓名")
    private String assigneeUserName;

    /** 被分配角色编码 */
            @Excel(name = "被分配角色编码")
    private String assigneeRoleKey;

    /** 被分配班组编码 */
            @Excel(name = "被分配班组编码")
    private String assigneeTeamCode;

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

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

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

    /** 派工状态（分配/接受/拒绝/完成/已取消） */
            @Excel(name = "派工状态", readConverterExp = "分=配/接受/拒绝/完成/已取消")
    private String status;

    /** 是否有效（1有效/0无效） */
            @Excel(name = "是否有效", readConverterExp = "1=有效/0无效")
    private String isFlag;

    public void setAssignmentId(Long assignmentId)
            {
            this.assignmentId = assignmentId;
            }

    public Long getAssignmentId()
            {
            return assignmentId;
            }
    public void setEventId(Long eventId)
            {
            this.eventId = eventId;
            }

    public Long getEventId()
            {
            return eventId;
            }
    public void setAssigneeUserId(Long assigneeUserId)
            {
            this.assigneeUserId = assigneeUserId;
            }

    public Long getAssigneeUserId()
            {
            return assigneeUserId;
            }
    public void setAssigneeUserName(String assigneeUserName)
            {
            this.assigneeUserName = assigneeUserName;
            }

    public String getAssigneeUserName()
            {
            return assigneeUserName;
            }
    public void setAssigneeRoleKey(String assigneeRoleKey)
            {
            this.assigneeRoleKey = assigneeRoleKey;
            }

    public String getAssigneeRoleKey()
            {
            return assigneeRoleKey;
            }
    public void setAssigneeTeamCode(String assigneeTeamCode)
            {
            this.assigneeTeamCode = assigneeTeamCode;
            }

    public String getAssigneeTeamCode()
            {
            return assigneeTeamCode;
            }
    public void setAssignedTime(Date assignedTime)
            {
            this.assignedTime = assignedTime;
            }

    public Date getAssignedTime()
            {
            return assignedTime;
            }
    public void setAcceptTime(Date acceptTime)
            {
            this.acceptTime = acceptTime;
            }

    public Date getAcceptTime()
            {
            return acceptTime;
            }
    public void setFinishTime(Date finishTime)
            {
            this.finishTime = finishTime;
            }

    public Date getFinishTime()
            {
            return finishTime;
            }
    public void setStatus(String status)
            {
            this.status = status;
            }

    public String getStatus()
            {
            return status;
            }
    public void setIsFlag(String isFlag)
            {
            this.isFlag = isFlag;
            }

    public String getIsFlag()
            {
            return isFlag;
            }

@Override
public String toString(){
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("assignmentId",getAssignmentId())
            .append("eventId",getEventId())
            .append("assigneeUserId",getAssigneeUserId())
            .append("assigneeUserName",getAssigneeUserName())
            .append("assigneeRoleKey",getAssigneeRoleKey())
            .append("assigneeTeamCode",getAssigneeTeamCode())
            .append("assignedTime",getAssignedTime())
            .append("acceptTime",getAcceptTime())
            .append("finishTime",getFinishTime())
            .append("status",getStatus())
            .append("isFlag",getIsFlag())
            .append("remark",getRemark())
            .append("createBy",getCreateBy())
            .append("createTime",getCreateTime())
            .append("updateBy",getUpdateBy())
            .append("updateTime",getUpdateTime())
        .toString();
        }
        }
