package com.bonus.material.approval.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

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

/**
 * 审批记录实体
 * 
 * @author bonus
 * @date 2024-11-18
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("审批记录")
public class ApprovalRecord implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("实例ID")
    private Long instanceId;

    @ApiModelProperty("节点ID")
    private Long nodeId;

    @ApiModelProperty("节点名称")
    private String nodeName;

    @ApiModelProperty("节点顺序")
    private Integer nodeOrder;

    @ApiModelProperty("审批人ID")
    private Long approverId;

    @ApiModelProperty("审批人姓名")
    private String approverName;
    private  String name;

    @ApiModelProperty("审批结果（1通过 2驳回）")
    private String approveResult;

    @ApiModelProperty("审批意见")
    private String approveOpinion;

    @ApiModelProperty("审批时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date approveTime;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}

